返回提交历史
Modified
docs/pydantic_ai.md
+1
-1
XFEstudio/gpt4free
Add ToolSupportProvider
a0e8559f
代码差异
1 个文件
+1
-1
@@ -152,7 +152,7 @@ class MyModel(BaseModel):
152
152
153
153
# Create the agent for a model with tool support (using one tool)
154
154
agent = Agent(AIModel(
155
"PollinationsAI:gpt-4o", # Specify the provider and model
155
"PollinationsAI:openai", # Specify the provider and model
156
156
ToolSupportProvider # Use ToolSupportProvider to handle tool-based response formatting
157
157
), result_type=MyModel, model_settings=ModelSettings(temperature=0))
158
158