Repository navigation
docs: a blank key on a custom base URL is sent as an empty key - #266
Merged
eric8810 merged 1 commit intoOct 16, 2026
Merged
Conversation
The web console README and RFC-0029 said that a call to a custom base_url with no key "goes out without a key". The code sends an explicit empty key instead, as the AI SDK does for `apiKey: ''`: no stored or environment key is used, and OpenAI and similar providers send an empty credential header such as `Authorization: Bearer `. The security property is unchanged; only the wording was wrong. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A3WxDBWBA4ituJjXsHaEAa
cunninghamcard-bit
pushed a commit
that referenced
this pull request
Oct 16, 2026
Brings in #266 (a blank key on a custom base URL is sent as an empty key, as the AI SDK does for apiKey: ''). Resolution: no conflicts. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A3WxDBWBA4ituJjXsHaEAa
7 of 12 tasks
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.
Requested by li
Summary
Before: the web console README and RFC-0029 say that a call to a custom
base_urlwith no key "goes out without a key".After: both say what the code does. The key is sent as an explicit empty key, the same as the AI SDK with
apiKey: ''. No stored or environment key is used, and OpenAI and similar providers send an empty credential header such asAuthorization: Bearer.This is the wording fix from the #248 review (point 1). The code is unchanged:
wire.rsreturnsSome("")for a custom base URL with a blank key, and@ai-sdk/openai4.0.83 sendsBearer ${loadApiKey(...)}the same way.Type of change
Checklist
cargo fmt --all -- --checkpassescargo clippy --workspace --all-targets -- -D warningspassescargo test --workspacepasses (cassette playback — no network/keys)README.md,docs/,rfc/,bindings/README.md)Notes for reviewers
tools/aimux-web/README.mdandrfc/0029-web-console.md, three lines.🤖 Generated with Claude Code
https://claude.ai/code/session_01A3WxDBWBA4ituJjXsHaEAa
Generated by Claude Code