XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Add ToolSupportProvider

a0e8559f
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified docs/pydantic_ai.md +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