alexkueck commited on
Commit
02ee690
1 Parent(s): e6c7b97

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -0
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",