mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-07-09 17:28:45 +00:00
docs(ai): reference README in migration guide
This commit is contained in:
parent
15f92260d7
commit
12ace0ba46
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
Migration guide:
|
||||
|
||||
- Read `packages/ai/README.md` in full for the new `Models` API, provider factories, auth configuration, image generation, and custom provider examples.
|
||||
- To keep the old global API temporarily, change imports from `@earendil-works/pi-ai` to `@earendil-works/pi-ai/compat`. The compat entrypoint preserves `stream`/`complete`, generated catalog reads, API registry helpers, env API-key helpers, lazy API wrappers, and image globals, but it will be removed in a future release.
|
||||
- To migrate to the new runtime, create a `Models` collection and call methods on it:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue