Skip to content

Add API Route provider to the CLI - #629

Merged
HavenDV merged 1 commit into
tryAGI:mainfrom
DennyHo0917:codex/add-api-route-cli-provider
Sep 28, 2026
Merged

HavenDV merged 1 commit into
tryAGI:mainfrom
DennyHo0917:codex/add-api-route-cli-provider

Conversation

@DennyHo0917

Copy link
Copy Markdown
Contributor

Adds API Route as a built-in CLI provider, following the merged Requesty integration in #624.

  • Select it with --provider apiroute and set API_ROUTE_API_KEY.
  • Reuse the existing OpenAI-compatible client at https://global.api-route.com/v1.
  • Cover endpoint and API-key environment variable resolution in 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 --check passed; 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.

@CLAassistant

CLAassistant commented Sep 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@HavenDV
HavenDV merged commit f1ff3ed into tryAGI:main Sep 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants