Spaces:
Sleeping
Sleeping
thejas-gida
commited on
Commit
·
0e5a0f6
1
Parent(s):
9a48c28
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ tools = [
|
|
41 |
|
42 |
num_outputs = 2000
|
43 |
conversational_memory = ConversationBufferWindowMemory( memory_key='chat_history', k=5, return_messages=True )
|
44 |
-
llm = OpenAI(temperature=0.
|
45 |
|
46 |
agent_executor = initialize_agent(tools, llm, agent="conversational-react-description", memory=conversational_memory,agent_kwargs={'prefix':PREFIX,'suffix': SUFFIX})
|
47 |
|
|
|
41 |
|
42 |
num_outputs = 2000
|
43 |
conversational_memory = ConversationBufferWindowMemory( memory_key='chat_history', k=5, return_messages=True )
|
44 |
+
llm = OpenAI(temperature=0.5, model_name="gpt-4",max_tokens=num_outputs)
|
45 |
|
46 |
agent_executor = initialize_agent(tools, llm, agent="conversational-react-description", memory=conversational_memory,agent_kwargs={'prefix':PREFIX,'suffix': SUFFIX})
|
47 |
|