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

XFEstudio/gpt4free

Update docs

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

代码差异

1 个文件 +3 -3
Modified docs/pydantic_ai.md +3 -3
@@ -85,7 +85,7 @@ For example, you can process your query or interact with external systems before
85 85
86 86 ---
87 87
88 ### Simple Example with Agent
88 ### Simple Example without `patch_infer_model`
89 89
90 90 ```python
91 91 from pydantic_ai import Agent
@@ -109,9 +109,9 @@ This example shows how to initialize an agent with a specific model (`gpt-4o`) a
109 109 from pydantic import BaseModel
110 110 from pydantic_ai import Agent
111 111 from pydantic_ai.models import ModelSettings
112 from g4f.tools.pydantic_ai import apply_patch
112 from g4f.tools.pydantic_ai import patch_infer_model
113 113
114 apply_patch("your_api_key")
114 patch_infer_model("your_api_key")
115 115
116 116 class MyModel(BaseModel):
117 117 city: str