Skip to content

Commit 0df1f82

Browse files
committed
chore(ag-ui): fix example docs and use localhost
Fix the example documentation to use the right package name and ensure the examples servers use `localhost` for the host.
1 parent bbfc941 commit 0df1f82

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/ag-ui.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,11 @@ For more examples of how to use [`Adapter`][pydantic_ai_ag_ui.Adapter] see
276276
[`pydantic_ai_ag_ui_examples`](https://github.com/pydantic/pydantic-ai/tree/main/examples/pydantic_ai_ag_ui_examples),
277277
which includes working server for the with the
278278
[AG-UI Dojo](https://docs.ag-ui.com/tutorials/debugging#the-ag-ui-dojo) which
279-
can be run from a clone of the repo or with the `pydantic_ai_ag_ui_examples` package
279+
can be run from a clone of the repo or with the `pydantic-ai-examples` package
280280
installed with either of the following:
281281

282282
```bash
283-
pip/uv-add 'pydantic_ai_ag_ui_examples'
283+
pip/uv-add 'pydantic-ai-examples'
284284
```
285285

286286
Direct:
@@ -292,5 +292,5 @@ python -m pydantic_ai_ag_ui_examples.dojo_server
292292
Using uvicorn:
293293

294294
```shell
295-
uvicorn pydantic_ai_ag_ui_examples.dojo_server:app --host 0.0.0.0 --port 8000
295+
uvicorn pydantic_ai_ag_ui_examples.dojo_server:app --port 9000
296296
```

examples/pydantic_ai_ag_ui_examples/dojo_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848

4949
uvicorn.run(
5050
'pydantic_ai_ag_ui_examples.dojo_server:app',
51-
host='127.0.0.1',
5251
port=9000,
5352
reload=True,
5453
log_level='info',

0 commit comments

Comments
 (0)