From a5a7458721aa0d7aebcc71d3f3476401304726f2 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Fri, 21 Feb 2025 10:06:35 +0100 Subject: [PATCH] Update pydantic_ai.md --- docs/pydantic_ai.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pydantic_ai.md b/docs/pydantic_ai.md index 329886aa..42efc830 100644 --- a/docs/pydantic_ai.md +++ b/docs/pydantic_ai.md @@ -19,9 +19,9 @@ pip install g4f pydantic_ai ## Step-by-Step Setup -### 1. Patch G4F to Use PydanticAI Models +### 1. Patch PydanticAI to Use G4F Models -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. +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. ```python from g4f.tools.pydantic_ai import apply_patch @@ -92,4 +92,4 @@ By following these steps, you have successfully integrated PydanticAI models int - Modify the agent’s `system_prompt` to suit the nature of the conversation you wish to have. - **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. -For further customization and advanced use cases, refer to the G4F and PydanticAI documentation. \ No newline at end of file +For further customization and advanced use cases, refer to the G4F and PydanticAI documentation.