Add API Route provider to the CLI - #629
Merged
HavenDV merged 1 commit intoSep 28, 2026
Merged
Conversation
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.
Adds API Route as a built-in CLI provider, following the merged Requesty integration in #624.
--provider apirouteand setAPI_ROUTE_API_KEY.https://global.api-route.com/v1.HelpersTests.Example:
langchain do --provider apiroute --model gpt-5.4-mini --input "Hello"The CLI's existing default model (
o3-mini) is not in API Route's current public model catalog, so the example specifies a listed model. No logo is needed for this CLI integration.Verification:
git diff --checkpassed; the public endpoint requires an API key and the example model is listed with OpenAI endpoint support. The .NET SDK is unavailable locally, so I could not run the CLI test here; the repository's PR CI will run it.Disclosure: This contribution is made on behalf of API Route.