feat: add support for OpenAI US data residency endpoint (us.api.openai.com)#5537
feat: add support for OpenAI US data residency endpoint (us.api.openai.com)#5537
Conversation
…i.com) - Update OpenAI URL pattern to accept us.api.openai.com for US data residency - Add custom base URL support in OpenAIProvider.buildUrl() via userConfig.baseUri - Add UI configuration for OpenAI Base URL in provider key settings - Enables BYOK customers to comply with OpenAI's January 12, 2026 deadline Customers can now configure their OpenAI provider key with a custom base URL (e.g., https://us.api.openai.com) to route requests to the US regional endpoint.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Claude finished @chitalian's task —— View job Code Review CompletedReviewing PR #5537: OpenAI US data residency endpoint support Todo List:
Score: 8/10 - Well-implemented feature with solid security practices Review SummaryThis PR successfully implements OpenAI US data residency endpoint support with good security practices and clean implementation. The changes are well-structured across the cost calculation logic and UI components. ✅ Strengths
🔧 Minor Suggestions1. URL Normalization Edge Case (
|
- Replace free-form text input with dropdown select for OpenAI endpoint - Add predefined options: Default (api.openai.com) and US Data Residency (us.api.openai.com) - Add server-side validation to only allow whitelisted OpenAI base URLs - Invalid or unknown URLs fall back to the default api.openai.com endpoint
Customers can now configure their OpenAI provider key with a custom base URL
(e.g., https://us.api.openai.com) to route requests to the US regional endpoint.