Skip to content

Commit 6111e9c

Browse files
committed
apply suggested changes
1 parent 4831524 commit 6111e9c

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For questions and feedback, contact us on [Slack](https://logfire.pydantic.dev/d
1111

1212
## Documentation Integration
1313

14-
To help you get started with [Pydantic AI Gateway](https://gateway.pydantic.dev), most code examples throughout the Pydantic AI docs include a "Pydantic AI Gateway" tab alongside the standard "Pydantic AI" tab. This allows you to see how to adapt examples for Gateway usage by simply switching tabs.
14+
To help you get started with [Pydantic AI Gateway](https://gateway.pydantic.dev), most code examples throughout the Pydantic AI docs include a "Pydantic AI Gateway" tab alongside the standard Pydantic AI call string named here "Direct to Provider API" tab. This allows you to see how to adapt examples for Gateway usage by simply switching tabs.
1515

1616
The main difference is that when using Gateway, model strings use the `gateway/` prefix.
1717

@@ -64,13 +64,13 @@ To use different models, change the model string `gateway/<api_type>:<model_name
6464

6565
Examples of providers and models that can be used are:
6666

67-
| **Provider** | **Provider ID** | **Example Model** |
68-
| --- | --- | --- |
69-
| OpenAI | `openai` | `gateway/openai:gpt-4.1` |
70-
| Anthropic | `anthropic` | `gateway/anthropic:claude-sonnet-4-5` |
71-
| Google Vertex | `google-vertex` | `gateway/google-vertex:gemini-2.5-flash` |
72-
| Groq | `groq` | `gateway/groq:openai/gpt-oss-120b` |
73-
| AWS Bedrock | `bedrock` | `gateway/bedrock:amazon.nova-micro-v1:0` |
67+
| **Provider** | **API Type** | **Example Model** |
68+
| --- |-----------------|------------------------------------------|
69+
| OpenAI | `openai` | `gateway/openai:gpt-5` |
70+
| Anthropic | `anthropic` | `gateway/anthropic:claude-sonnet-4-5` |
71+
| Google Vertex | `google-vertex` | `gateway/google-vertex:gemini-2.5-flash` |
72+
| Groq | `groq` | `gateway/groq:openai/gpt-oss-120b` |
73+
| AWS Bedrock | `bedrock` | `gateway/bedrock:amazon.nova-micro-v1:0` |
7474

7575
## Pydantic AI
7676
Before you start, update to the latest version of `pydantic-ai`:
@@ -95,10 +95,10 @@ export PYDANTIC_AI_GATEWAY_API_KEY="YOUR_PAIG_TOKEN"
9595

9696
You can access multiple models with the same API key, as shown in the code snippet below.
9797

98-
```python {title="hello_world.py" test="skip"}
98+
```python {title="hello_world.py"}
9999
from pydantic_ai import Agent
100100

101-
agent = Agent('gateway/chat:gpt-5')
101+
agent = Agent('gateway/openai:gpt-5')
102102

103103
result = agent.run_sync('Where does "hello world" come from?')
104104
print(result.output)
@@ -135,7 +135,7 @@ Launch Claude Code by typing `claude`. All requests will now route through the P
135135
)
136136

137137
response = client.chat.completions.create(
138-
model='gpt-4o',
138+
model='gpt-5',
139139
messages=[{'role': 'user', 'content': 'Hello world'}],
140140
)
141141
print(response.choices[0].message.content)
@@ -153,7 +153,7 @@ Launch Claude Code by typing `claude`. All requests will now route through the P
153153

154154
response = client.messages.create(
155155
max_tokens=1000,
156-
model='claude-3-haiku-20240307',
156+
model='claude-sonnet-4-5',
157157
messages=[{'role': 'user', 'content': 'Hello world'}],
158158
)
159159
print(response.content[0].text)

mkdocs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ nav:
2424
- message-history.md
2525
- direct.md
2626
- Models & Providers:
27-
- Overview: models/overview.md
27+
- Overview: models/gateway.md
2828
- models/openai.md
2929
- models/anthropic.md
3030
- models/google.md
@@ -55,15 +55,15 @@ nav:
5555
- Testing: testing.md
5656

5757
- Pydantic AI Gateway:
58-
- Overview: ai_gateway/overview.md
58+
- Overview: ai_gateway/gateway.md
5959

6060
- Pydantic Evals:
6161
- Overview: evals.md
6262
- Getting Started:
6363
- Quick Start: evals/quick-start.md
6464
- Core Concepts: evals/core-concepts.md
6565
- Evaluators:
66-
- Overview: evals/evaluators/overview.md
66+
- Overview: evals/evaluators/gateway.md
6767
- Built-in Evaluators: evals/evaluators/built-in.md
6868
- LLM Judge: evals/evaluators/llm-judge.md
6969
- Custom Evaluators: evals/evaluators/custom.md
@@ -90,12 +90,12 @@ nav:
9090
- Integrations:
9191
- Debugging & Monitoring with Pydantic Logfire: logfire.md
9292
- Durable Execution:
93-
- Overview: durable_execution/overview.md
93+
- Overview: durable_execution/gateway.md
9494
- Temporal: durable_execution/temporal.md
9595
- DBOS: durable_execution/dbos.md
9696
- Prefect: durable_execution/prefect.md
9797
- UI Event Streams:
98-
- Overview: ui/overview.md
98+
- Overview: ui/gateway.md
9999
- AG-UI: ui/ag-ui.md
100100
- Vercel AI: ui/vercel-ai.md
101101
- Agent2Agent (A2A): a2a.md

0 commit comments

Comments
 (0)