Open
Conversation
OfoxAI is an OpenAI-compatible API gateway providing unified access to 73+ AI models (Claude, GPT, Gemini, DeepSeek, Qwen, and more). Add custom loader with standard attribution headers, following the same pattern as the Kilo provider. Models are defined in models.dev (see anomalyco/models.dev#1275).
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
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.
Issue for this PR
N/A - New provider addition
Type of change
What does this PR do?
Adds OfoxAI as a native provider. OfoxAI is an OpenAI-compatible API gateway (https://ofox.ai) that provides unified access to 73+ AI models from Anthropic, OpenAI, Google, DeepSeek, Qwen, MiniMax, Doubao, GLM, and Kimi through a single API key.
The implementation follows the exact same pattern as the Kilo provider — a
CUSTOM_LOADERSentry using@ai-sdk/openai-compatible(already bundled) with standard attribution headers. No new dependencies are added.The corresponding model definitions are submitted to models.dev in anomalyco/models.dev#1275.
How did you verify your code works?
bun test test/provider/provider.test.ts) — all 70 tests pass with no regressionsbun run validateon models.dev with the OfoxAI provider TOML files — all validated successfully/v1/modelsendpoint returns correct model data and/v1/chat/completionsresponds with proper error format (401 without key, confirming API connectivity)Screenshots / recordings
N/A - No UI changes
Checklist