Skip to content

feat: add API Route gateway provider - #250

Open
DennyHo0917 wants to merge 1 commit into
HKUDS:mainfrom
DennyHo0917:feat/api-route-provider
Open

DennyHo0917 wants to merge 1 commit into
HKUDS:mainfrom
DennyHo0917:feat/api-route-provider

Conversation

@DennyHo0917

Copy link
Copy Markdown

Summary

Add API Route as a built-in OpenAI-compatible gateway provider, following the existing gateway provider pattern. The provider uses API_ROUTE_API_KEY and defaults to https://global.api-route.com/v1.

This also adds setup instructions and tests for registration, endpoint classification, configuration, and missing-key handling.

I maintain API Route and am happy to adjust the integration to fit DeepCode's provider conventions.

Validation

  • python -m pytest tests/test_api_route_provider.py tests/test_provider_egress.py -q — 45 passed
  • python -m ruff check tests/test_api_route_provider.py core/providers/registry.py tests/test_provider_egress.py
  • python -m ruff format --check tests/test_api_route_provider.py core/providers/registry.py core/config.py tests/test_provider_egress.py
  • git diff --check

This branch has not been deployed

No deployments
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.

1 participant