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

XFEstudio/gpt4free

Update pydantic_ai.md

a5a74587
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -3
Modified docs/pydantic_ai.md +3 -3
@@ -19,9 +19,9 @@ pip install g4f pydantic_ai
19 19
20 20 ## Step-by-Step Setup
21 21
22 ### 1. Patch G4F to Use PydanticAI Models
22 ### 1. Patch PydanticAI to Use G4F Models
23 23
24 In order to use PydanticAI models with G4F, you need to apply the necessary patch to the client. This can be done by importing `apply_patch` from `g4f.tools.pydantic_ai`. The `api_key` parameter is optional, so if you have one, you can provide it. If not, the system will proceed without it.
24 In order to use PydanticAI with G4F models, you need to apply the necessary patch to the client. This can be done by importing `apply_patch` from `g4f.tools.pydantic_ai`. The `api_key` parameter is optional, so if you have one, you can provide it. If not, the system will proceed without it.
25 25
26 26 ```python
27 27 from g4f.tools.pydantic_ai import apply_patch
@@ -92,4 +92,4 @@ By following these steps, you have successfully integrated PydanticAI models int
92 92 - Modify the agent’s `system_prompt` to suit the nature of the conversation you wish to have.
93 93 - **Tool calls within AI requests are not fully supported** at the moment. Use the agent's basic functionality for generating responses and handle external calls separately.
94 94
95 For further customization and advanced use cases, refer to the G4F and PydanticAI documentation.
95 For further customization and advanced use cases, refer to the G4F and PydanticAI documentation.