You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: name the managed provider after the platform serving it
The managed OAuth provider authenticates against auth.kimi.com and serves its
models from api.kimi.com, but it was registered as `managed:pythinker-code`.
In a client that talks to several providers that reads as a first-party
service rather than the one it actually is, and the models it installed
carried a `pythinker-code/` prefix that said the same thing.
It is now `managed:kimi-code`, with `kimi-code/*` model aliases and
credentials under `oauth/kimi-code`. The provider name also stops being
redeclared as a bare literal in four places and comes from the single
exported constant instead.
Existing configs are not rewritten: signing in again provisions the provider
under its current name.
Name the managed OAuth provider after the platform that serves it. It is reached over `auth.kimi.com` and `api.kimi.com`, but it was registered as `managed:pythinker-code`, which read as a first-party service in a client that talks to several providers. The provider id is now `managed:kimi-code`, its models are aliased `kimi-code/*`, and its credentials are stored under `oauth/kimi-code`.
7
+
8
+
This is a breaking change for an existing config: the previous entries are not rewritten, so run `pythinker login` once to provision the managed provider under its current name, then remove the stale `managed:pythinker-code` entry.
0 commit comments