Repository navigation
Conversation
|
Every PR must be linked to a same-repo issue before Oz can review it. This PR is linked to #12251, but no linked issue is marked See the contribution guidelines for the full readiness model. Powered by Oz |
There was a problem hiding this comment.
Every PR must be linked to a same-repo issue before Oz can review it.
This PR is linked to #13084, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /oz-review to re-trigger review.
See the contribution guidelines for the full readiness model.
Powered by Oz
|
/oz-review |
There was a problem hiding this comment.
Every PR must be linked to a same-repo issue before Oz can review it.
This PR is linked to #12251, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /oz-review to re-trigger review.
See the contribution guidelines for the full readiness model.
Powered by Oz
Description
This PR adds support for configuring a custom OpenAI base URL under the Bring Your Own Key (BYOK) settings in the AI settings page.
Currently, BYOK is limited to the default OpenAI endpoint (
api.openai.com). By introducing this custom base URL configuration, users can route standard OpenAI models (likegpt-4o) to custom OpenAI-compatible endpoints—such as GitHub Copilot (https://api.githubcopilot.com), regional endpoints, or local proxies—directly from the built-in model picker.Linked Issue
Closes #12251
ready-to-specorready-to-implement.Testing
Added unit tests in
crates/ai/src/api_keys_tests.rs:serde_round_trip_with_openai_api_urlto verify serialization and deserialization of the newopenai_api_urlfield.custom_model_providers_includes_openai_overrideto verify that custom model providers correctly inject and route the OpenAI models when the custom base URL is enabled.custom_model_providers_excludes_openai_override_when_byo_disabledto verify the security boundary remains intact when BYOK is disabled.I have manually tested my changes locally with
./script/runAgent Mode
CHANGELOG-IMPROVEMENT: Add support for custom base URL configuration to OpenAI Bring Your Own Key (BYOK) settings, enabling third-party OpenAI-compatible endpoints like GitHub Copilot.