From cdefc324d77ccffc6e27393bec04588b35f0e71e Mon Sep 17 00:00:00 2001 From: hlohaus <983577+hlohaus@users.noreply.github.com> Date: Sat, 22 Feb 2025 13:23:24 +0100 Subject: [PATCH] Update docs --- 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 7b520241..895b3d77 100644 --- a/docs/pydantic_ai.md +++ b/docs/pydantic_ai.md @@ -85,7 +85,7 @@ For example, you can process your query or interact with external systems before --- -### Simple Example with Agent +### Simple Example without `patch_infer_model` ```python from pydantic_ai import Agent @@ -109,9 +109,9 @@ This example shows how to initialize an agent with a specific model (`gpt-4o`) a from pydantic import BaseModel from pydantic_ai import Agent from pydantic_ai.models import ModelSettings -from g4f.tools.pydantic_ai import apply_patch +from g4f.tools.pydantic_ai import patch_infer_model -apply_patch("your_api_key") +patch_infer_model("your_api_key") class MyModel(BaseModel): city: str