feat: allow per-format auth_type override for openai:embedding and openai:rerank#626
Draft
Kayphoon wants to merge 3 commits into
Draft
feat: allow per-format auth_type override for openai:embedding and openai:rerank#626Kayphoon wants to merge 3 commits into
Kayphoon wants to merge 3 commits into
Conversation
…enai:rerank Previously, all openai-family formats were hardcoded to use resolve_local_openai_bearer_auth (always sends Authorization: Bearer), and the frontend blocked auth_type override UI for all openai formats. This change: - Routes openai:embedding and openai:rerank through resolve_local_standard_auth in the conversion path (same as claude:messages and the same-format path), so auth_type_by_format overrides (bearer/api_key) are respected. - Relaxes formatSupportsAuthOverride in the frontend to show the bearer/api_key radio buttons for openai:embedding and openai:rerank. - Adds tests for standard_auth with openai:embedding auth_type_by_format.
17aff26 to
567926f
Compare
…_free providers - Add opencode_free transport module with ULID header injection (no auth) - Add kilo_free transport module with Bearer 'free' auth - Add OpenCodeFreeProviderPoolAdapter and KiloFreeProviderPoolAdapter - Register both adapters in builtin service pool - Add FixedProviderTemplate for both providers - Add kilo_free model fetch strategy (StandardTransport) - Register opencode_free and kilo_free in frontend ProviderType union - 423 tests pass across 3 crates, frontend typecheck clean
…and frontend dropdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allow per-format
auth_typeoverride (bearer / api_key) foropenai:embeddingandopenai:rerankformats, matching the existing behavior forclaude:messages.Previously, all openai-family formats were hardcoded to always send
Authorization: Bearer(viaresolve_local_openai_bearer_auth), and the frontend blocked the auth override UI for all openai formats. This caused issues with providers like ModelScope that expectx-api-keyinstead ofAuthorization: Bearer.Changes
conversion.rs): Routeopenai:embeddingandopenai:rerankthroughresolve_local_standard_auth(same asclaude:messagesand the same-format path), soauth_type_by_formatoverrides are respected.api-format.ts): RelaxformatSupportsAuthOverrideto show the bearer/api_key radio buttons foropenai:embeddingandopenai:rerank.auth.rs): Add tests forstandard_authwithopenai:embeddingauth_type_by_formatoverride.Verification