James MacQuillan commited on
Commit
a90aeb4
·
1 Parent(s): f56c221
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -289,7 +289,7 @@ def chat(user_input,history):
289
  search_messages = history or [{'role': 'system', 'content': 'you are IM.FIN'}]
290
 
291
  print(f'here is the search messages: \n\n\n\n {search_messages} \n\n\n')
292
- search_messages.append({'role':'user','content':f'based on {user_input} and {search_messages}, respond with a list of google searches that will give the correct data to respond, respond in this format: {format_template} with up to 3 searches but try and limit it to the minimum needed. RETURN 1 DICTIONARY IN THE SPECIFIED FORMAT BASED ON THE USER INPUT {user_input}. RETURN ABSOLUTELY NO OTHER TEXT OTHER THAN THE DICTIONARY WITH THE SEARCHES. here is the history use it {search_messages}. MAKE SURE YOU ALWAYS HAVE A , BETWEEN THE user_input and searches'})
293
  for value in dots_animation:
294
  yield value
295
  response_for_searches = client.chat.completions.create(
 
289
  search_messages = history or [{'role': 'system', 'content': 'you are IM.FIN'}]
290
 
291
  print(f'here is the search messages: \n\n\n\n {search_messages} \n\n\n')
292
+ search_messages.append({'role':'user','content':f'based on {user_input} and {search_messages}, respond with a list of google searches that will give the correct data to respond, respond in this format: {format_template} with up to 3 searches but try and limit it to the minimum needed. RETURN 1 DICTIONARY IN THE SPECIFIED FORMAT BASED ON THE USER INPUT {user_input}. RETURN ABSOLUTELY NO OTHER TEXT OTHER THAN THE DICTIONARY WITH THE SEARCHES. here is the history use it {search_messages}. MAKE SURE YOU ALWAYS HAVE A , BETWEEN THE user_input and searches. only return one dictionary'})
293
  for value in dots_animation:
294
  yield value
295
  response_for_searches = client.chat.completions.create(