docs(ai): reference README in migration guide

This commit is contained in:
Mario Zechner 2026-06-23 15:33:37 +02:00
parent 15f92260d7
commit 12ace0ba46

View file

@ -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: