SlothioAI commited on
Commit
1b5c226
·
1 Parent(s): 000471a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def initialize_keys(openai_api_key, google_api_key, google_cse_id, wolfram_alpha
21
  def chat_response(input_text, openai_api_key, google_api_key, google_cse_id, wolfram_alpha_appid):
22
  initialize_keys(openai_api_key, google_api_key, google_cse_id, wolfram_alpha_appid)
23
 
24
- llm=ChatOpenAI(temperature=1)
25
  search = GoogleSearchAPIWrapper()
26
  tools = load_tools(["google-search", "wolfram-alpha", "wikipedia"], llm=llm)
27
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
 
21
  def chat_response(input_text, openai_api_key, google_api_key, google_cse_id, wolfram_alpha_appid):
22
  initialize_keys(openai_api_key, google_api_key, google_cse_id, wolfram_alpha_appid)
23
 
24
+ llm=ChatOpenAI(temperature=1, max_tokens=2000,model_name="gpt-3.5-turbo" )
25
  search = GoogleSearchAPIWrapper()
26
  tools = load_tools(["google-search", "wolfram-alpha", "wikipedia"], llm=llm)
27
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)