Skip to content

Fix chat_portkey() error when PORTKEY_VIRTUAL_KEY is not set#1001

Draft
thisisnic wants to merge 1 commit into
tidyverse:mainfrom
thisisnic:872-portkey-workaround
Draft

Fix chat_portkey() error when PORTKEY_VIRTUAL_KEY is not set#1001
thisisnic wants to merge 1 commit into
tidyverse:mainfrom
thisisnic:872-portkey-workaround

Conversation

@thisisnic
Copy link
Copy Markdown
Collaborator

@thisisnic thisisnic commented May 26, 2026

The virtual_key deprecation in #808 made PORTKEY_VIRTUAL_KEY effectively required for any model not using the @provider/model format.

Before that change, the virtual key was optional; users with custom Portkey gateways could pass arbitrary model IDs (e.g., AWS Bedrock ARNs) without one. Now key_get() is only called when the env var actually exists.

Marking as draft for now so I can double-check this as it was mostly Claude, but seem reasonable.

Fixes #872

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.

Allow model ARN without requiring Portkey provider/virtual key in chat_portkey()

2 participants