-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: route AI provider requests to aibridged #21343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ssncferreira/feat-aiproxy-proxy-authorization
Are you sure you want to change the base?
feat: route AI provider requests to aibridged #21343
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4d87f7d to
9b2593b
Compare
bc4caed to
97198d5
Compare
88a304c to
56e1c5c
Compare
b82c306 to
5e6a35c
Compare
4157564 to
ac0129f
Compare
5a1d2dc to
4196397
Compare
ac0129f to
ae82ddd
Compare
644e954 to
4654e31
Compare
176e7e7 to
097fbc9
Compare
097fbc9 to
7145548
Compare
4654e31 to
e0906db
Compare
| const ( | ||
| HostAnthropic = "api.anthropic.com" | ||
| HostOpenAI = "api.openai.com" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why these need to be consts? I only see a single usage of each?

Description
Implements request routing for the AI Bridge Proxy. After MITM decryption, requests to known AI providers (Anthropic, OpenAI) are rewritten to the corresponding aibridged endpoint, while requests to unknown hosts are passed through to their original destination.
Changes
CoderAccessURLconfiguration option for specifying the Coder deployment URLhandleRequestto route decrypted requests based on target hostAuthorization: Bearerheader for aibridgedDepends on: #21342
Closes: coder/internal#1181