Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -376,7 +376,7 @@ from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
|
376 |
from langchain.agents import tool
|
377 |
from langchain.agents.format_scratchpad.openai_tools import format_to_openai_tool_messages
|
378 |
from langchain.agents.output_parsers.openai_tools import OpenAIToolsAgentOutputParser
|
379 |
-
from
|
380 |
from langchain.agents import AgentExecutor
|
381 |
|
382 |
# Define the tools
|
@@ -392,7 +392,7 @@ prompt = ChatPromptTemplate.from_messages(
|
|
392 |
)
|
393 |
|
394 |
# Define the LLM
|
395 |
-
llm_with_tools = OpenAI(model="gpt-
|
396 |
|
397 |
# Create the agent
|
398 |
agent = (
|
|
|
376 |
from langchain.agents import tool
|
377 |
from langchain.agents.format_scratchpad.openai_tools import format_to_openai_tool_messages
|
378 |
from langchain.agents.output_parsers.openai_tools import OpenAIToolsAgentOutputParser
|
379 |
+
from langchain_community.llms import OpenAI
|
380 |
from langchain.agents import AgentExecutor
|
381 |
|
382 |
# Define the tools
|
|
|
392 |
)
|
393 |
|
394 |
# Define the LLM
|
395 |
+
llm_with_tools = OpenAI(model="gpt-4o")
|
396 |
|
397 |
# Create the agent
|
398 |
agent = (
|