Skip to content

fix: adapt to ModelRegistry.getApiKeyAndHeaders rename#2

Open
fairusage wants to merge 1 commit intojo-inc:mainfrom
fairusage:fix/model-registry-api
Open

fix: adapt to ModelRegistry.getApiKeyAndHeaders rename#2
fairusage wants to merge 1 commit intojo-inc:mainfrom
fairusage:fix/model-registry-api

Conversation

@fairusage
Copy link
Copy Markdown

pi's ModelRegistry dropped getApiKey(model) in favor of getApiKeyAndHeaders(model), which returns { ok, apiKey, headers }. This broke /reflect with:

Extension "command:reflect" error: ctx.modelRegistry.getApiKey is not a function

Updated both call sites in index.ts and reflect.ts.

getApiKey was removed from the ModelRegistry API in a recent pi
release. Both call sites now use getApiKeyAndHeaders and unwrap
the result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant