Skip to content

Use new getApiKeyAndHeaders to fetch the API key from the model registry#41

Open
kirberich wants to merge 1 commit intomgabor3141:mainfrom
kirberich:fix-getApiKey
Open

Use new getApiKeyAndHeaders to fetch the API key from the model registry#41
kirberich wants to merge 1 commit intomgabor3141:mainfrom
kirberich:fix-getApiKey

Conversation

@kirberich
Copy link
Copy Markdown

getApiKey was removed from the modelRegistry in pi a few weeks ago - this made me scratch my head for a while because the only symptom of this was pi-budget-model insisting that there's no available model to pick. Switching to the new getApiKeyAndHeaders fixes it, but it does increase the required version of pi.

The other approach would have been to try using the new api and fall back to the old one, avoiding the need to increase the version dependency, but I figured I'd keep it simple.

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