Chandima Prabhath commited on
Commit
dc2a7ba
·
1 Parent(s): 25b0fa7

Update route_intent function documentation for clarity on JSON response format

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -398,7 +398,7 @@ def route_intent(user_input: str, chat_id: str, sender: str):
398
  "- send_text(message)\n\n"
399
  "Return only raw JSON matching one of these shapes. For example:\n"
400
  " {\"action\":\"generate_image\",\"prompt\":\"a red fox\",\"count\":3,\"width\":512,\"height\":512}\n"
401
- "Otherwise, use send_text to reply with plain chat.\n"
402
  )
403
  prompt = f"{sys_prompt}\nConversation so far:\n{history_text}\n\n current message: User: {user_input}"
404
 
 
398
  "- send_text(message)\n\n"
399
  "Return only raw JSON matching one of these shapes. For example:\n"
400
  " {\"action\":\"generate_image\",\"prompt\":\"a red fox\",\"count\":3,\"width\":512,\"height\":512}\n"
401
+ "Otherwise, use send_text to reply with plain chat and you should only return one json for the current messege not for previoes conversations.\n"
402
  )
403
  prompt = f"{sys_prompt}\nConversation so far:\n{history_text}\n\n current message: User: {user_input}"
404