POC: chatd uses aibridged routing in OSS#25577
Closed
dannykopping wants to merge 1 commit into
Closed
Conversation
This was referenced May 21, 2026
This was referenced May 21, 2026
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced May 21, 2026
df9c129 to
b3dd62e
Compare
6336792 to
add17ab
Compare
add17ab to
b5981a0
Compare
b3dd62e to
7aaf647
Compare
b5981a0 to
5b236dd
Compare
063af1f to
c2fa1c4
Compare
…vider prefix Fantasy SDK clients construct upstream URLs like POST https://api.anthropic.com/v1/messages, so the in-process RoundTripper that ships the request to aibridged sees a path of /v1/messages. The aibridge mux dispatches on the provider-prefixed path (/anthropic/v1/messages) just like aibridgeproxyd does on the network path, so a naive request lands in the mux's catch-all and returns 404 'route not supported'. Add a host -> provider-name lookup to the transport factory. When the request's URL host matches a configured provider's BaseURL host, prepend /{providerName} to the path before invoking the handler. The mapping is built once at daemon startup from the same providers passed to newAIBridgeDaemon, mirroring enterprise/cli/aibridgeproxyd.go's domainsFromProviders. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5b236dd to
e350dae
Compare
This was referenced May 22, 2026
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.

This is not a real PR intended to be merged; it's merely a validation that Agents + OSS can target AI Gateway while the HTTP API cannot be accessed directly without a license.