Update utils.py
Browse files
utils.py
CHANGED
@@ -371,6 +371,9 @@ def process_image(image_path, prompt, model_image, oai_key):
|
|
371 |
|
372 |
|
373 |
def process_chatverlauf(prompt, model, oai_key):
|
|
|
|
|
|
|
374 |
# Prepare the data for the API request (specific to the API you're using)
|
375 |
headers = {
|
376 |
"Content-Type": "application/json",
|
|
|
371 |
|
372 |
|
373 |
def process_chatverlauf(prompt, model, oai_key):
|
374 |
+
#um die Abfrage nur für den Namen des chats nicht zu lang werden zu lassen, den Prompt begrenzen:
|
375 |
+
if (len(prompt)>50):
|
376 |
+
prompt = prompt[:50]
|
377 |
# Prepare the data for the API request (specific to the API you're using)
|
378 |
headers = {
|
379 |
"Content-Type": "application/json",
|