Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -317,7 +317,7 @@ def translate_text(text_prompt, target_language):
|
|
317 |
def openai_chat_avatar(text_prompt):
|
318 |
response = client.chat.completions.create(
|
319 |
model="gpt-4o-mini",
|
320 |
-
messages=[{"role": "system", "content": "Answer in
|
321 |
{"role": "user", "content": f"Hi! I need help with something. Can you assist me with the following: {text_prompt}"},
|
322 |
],
|
323 |
max_tokens = len(text_prompt) + 300 # Use the length of the input text
|
|
|
317 |
def openai_chat_avatar(text_prompt):
|
318 |
response = client.chat.completions.create(
|
319 |
model="gpt-4o-mini",
|
320 |
+
messages=[{"role": "system", "content": "Answer in English language always using the minimum words you can ever use."},
|
321 |
{"role": "user", "content": f"Hi! I need help with something. Can you assist me with the following: {text_prompt}"},
|
322 |
],
|
323 |
max_tokens = len(text_prompt) + 300 # Use the length of the input text
|