Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|