Repository navigation
feat: add API Route as an OpenAI-compatible provider alias - #4567
Draft
DennyHo0917 wants to merge 1 commit into
Draft
DennyHo0917 wants to merge 1 commit into
DennyHo0917 wants to merge 1 commit into
Conversation
Signed-off-by: dennyho0917 <dennyho0917@gmail.com>
This branch has not been deployed
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.
Summary
Add API Route as an opt-in OpenAI-compatible alias, following the Atlas Cloud (#3962) and DaoXE (#4246) patterns.
api-routewithhttps://global.api-route.com/v1andAPI_ROUTE_API_KEY.gpt-6.1-solas the default model.API Route is absent from the embedded models.dev snapshot. The existing catalog-exemption mechanism is used without editing the generated snapshot. The guide explains the missing metadata and conservative attachment handling; no pricing, context-window or multimodal claims are added.
Validation
scripts/build.sh: passed.TestOpenAIAliasProvider_LiveAPI/api-route: passed, streamedpongusinggpt-6.1-sol.GET /v1/models: 57 IDs, including the exact default ID.addwith arguments{"a":2,"b":3},finish_reason: tool_calls.git diff --check: passed. Commit carries DCO sign-off and a GitHub-verified SSH signature.The full Windows suite and project cops are still running locally; results will be updated before this draft is marked ready. Native golangci-lint reports four findings in unchanged Windows-only tests (
pkg/sandbox/options_windows_test.go,pkg/hooks/helpers_windows_test.go); a baseline comparison is in progress.Disclosure: I am affiliated with API Route. This contribution was prepared with AI assistance and reviewed before submission.