Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -252,7 +252,7 @@ def chat(message, history):
|
|
| 252 |
try:
|
| 253 |
raw = agent.invoke(ab)["output"]
|
| 254 |
except:
|
| 255 |
-
llm = ChatOpenAI(model="openai/gpt-4.1-nano",openai_api_key="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",openai_api_base="https://models.github.ai/inference"
|
| 256 |
agent=initialize_agent(tools,llm,agent_type=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,memory=memory,verbose=True,handle_parsing_errors=True)
|
| 257 |
raw=agent.invoke(ab)["output"]
|
| 258 |
try:
|
|
|
|
| 252 |
try:
|
| 253 |
raw = agent.invoke(ab)["output"]
|
| 254 |
except:
|
| 255 |
+
llm = ChatOpenAI(model="openai/gpt-4.1-nano",openai_api_key="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",openai_api_base="https://models.github.ai/inference")
|
| 256 |
agent=initialize_agent(tools,llm,agent_type=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,memory=memory,verbose=True,handle_parsing_errors=True)
|
| 257 |
raw=agent.invoke(ab)["output"]
|
| 258 |
try:
|