Spanicin commited on
Commit
a2e657b
·
verified ·
1 Parent(s): 0eb5747

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -274,7 +274,7 @@ def translate_text(text_prompt, target_language):
274
  def chat_avatar(text_prompt):
275
  response = client.chat.completions.create(
276
  model="gpt-4o-mini",
277
- messages=[{"role": "system", "content": "You are an interactive, conversational and helpful chatbot. Your role is to assist users by providing clear, engaging, and relevant only one liner responses responses based on their queries. Regardless of the language used by the user, you should always respond in English."},
278
  {"role": "user", "content": f"Hi! I need help with something. Can you assist me with the following: {text_prompt}"},
279
  ],
280
  max_tokens = len(text_prompt) + 300 # Use the length of the input text
 
274
  def chat_avatar(text_prompt):
275
  response = client.chat.completions.create(
276
  model="gpt-4o-mini",
277
+ messages=[{"role": "system", "content": "You are an interactive, conversational and helpful chatbot. Your role is to assist users by providing clear, engaging, and relevant answers using bare minimum words. Your answer doesn't have to be a complete one line. Just the bare minimum words will do. Regardless of the language used by the user, you should always respond in English."},
278
  {"role": "user", "content": f"Hi! I need help with something. Can you assist me with the following: {text_prompt}"},
279
  ],
280
  max_tokens = len(text_prompt) + 300 # Use the length of the input text