mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-05 18:20:35 -08:00
Add ToolSupportProvider
This commit is contained in:
parent
fa086e23af
commit
a0e8559fc3
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ class MyModel(BaseModel):
|
|||
|
||||
# Create the agent for a model with tool support (using one tool)
|
||||
agent = Agent(AIModel(
|
||||
"PollinationsAI:gpt-4o", # Specify the provider and model
|
||||
"PollinationsAI:openai", # Specify the provider and model
|
||||
ToolSupportProvider # Use ToolSupportProvider to handle tool-based response formatting
|
||||
), result_type=MyModel, model_settings=ModelSettings(temperature=0))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue