mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
docs(ai): rewrite README around the Models API
Quick Start, querying, auth, OAuth, custom providers, faux, handoffs, browser usage, and the dev checklist now demonstrate createModels() + provider factories: sync model reads with explicit refresh, provider- owned auth resolution (getAuth, credential store, env tables), OAuthAuth login/refresh with prompt()/notify() callbacks, and createProvider() for custom/dynamic providers (replacing bare Model + global stream). Direct API implementation calls documented under the canonical ./api/<id> subpaths with the legacy aliases noted. The old global API is documented once, in a migration section pointing at /compat with an old-to-new mapping table. Image generation is documented as living on compat for now. All import/code claims verified with a compile-and-run smoke script.
This commit is contained in:
+550
-613
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user