Skip to content

Support Claude console subscription auth for model listing#451

Open
bobrowadam wants to merge 1 commit intoeditor-code-assistant:masterfrom
bobrowadam:claude-console-auth
Open

Support Claude console subscription auth for model listing#451
bobrowadam wants to merge 1 commit intoeditor-code-assistant:masterfrom
bobrowadam:claude-console-auth

Conversation

@bobrowadam
Copy link
Copy Markdown

  • Dispatch x-api-key vs Authorization: Bearer when fetching the provider /models endpoint based on the stored auth :type, so Claude console subscription (token) and OAuth flows both work.

  • Thread auth-type from provider-api-key through fetch-provider-native-models instead of hardcoding :auth/oauth.

  • Add tests for both Anthropic token (x-api-key) and OAuth (Bearer) paths.

  • I added a entry in changelog under unreleased section.

  • This is not an AI slop.

Use configurable auth type from provider config (defaulting to :auth/oauth)
so that token-based and OAuth-based providers (e.g. Claude console subscription)
send the correct header (x-api-key vs Authorization: Bearer) when fetching models.

🤖 Generated with [eca](https://eca.dev)

Co-Authored-By: eca <noreply@eca.dev>
@ericdallo
Copy link
Copy Markdown
Member

@bobrowadam what this fixes? what you see? can you check tests as well?

@ericdallo
Copy link
Copy Markdown
Member

I get the issue now, but can you fix the tests before I test?

@bobrowadam
Copy link
Copy Markdown
Author

@ericdallo sure will do

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.

2 participants