James MacQuillan commited on
Commit
6f5ae72
·
1 Parent(s): 1067ef6
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def process_query(user_input, history):
96
  # Accumulate streamed content from the initial request
97
  stream_search = client.chat_completion(
98
  model="Qwen/Qwen2.5-72B-Instruct",
99
- messages=[{"role": "user", "content": f"Based on this chat history {history} and the user's request '{user_input}', suggest a Google search term in a single line without assuming any specific dates use 'this year', 'this month', etc. make sure that you do generate a good search based on the query, for example if the user asks 'build a DFCF model for Apple', search up something like 'Apple DFCF model', and if they ask for something like a market cap, just search up what is Apple's current market cap"}],
100
  max_tokens=400,
101
  stream=True
102
  )
 
96
  # Accumulate streamed content from the initial request
97
  stream_search = client.chat_completion(
98
  model="Qwen/Qwen2.5-72B-Instruct",
99
+ messages=[{"role": "user", "content": f"Based on this chat history {history} and the user's request '{user_input}', suggest a Google search term in a single line without assuming any specific dates use 'this year', 'this month', etc. make sure that you do generate a good search based on the query, for example if the user asks 'build a DFCF model for Apple', search up something like 'Apple DFCF model', and if they ask for something like a market cap, just search up what is Apple's current market cap. make sure that you provide a good google search all of the time, for example if they ask for the price of pulsar helium stock just search for it"}],
100
  max_tokens=400,
101
  stream=True
102
  )