Skip to content

feat: add OfoxAI as a native provider#19210

Open
Maklu wants to merge 1 commit intoanomalyco:devfrom
Maklu:feat/add-ofoxai-provider
Open

feat: add OfoxAI as a native provider#19210
Maklu wants to merge 1 commit intoanomalyco:devfrom
Maklu:feat/add-ofoxai-provider

Conversation

@Maklu
Copy link
Copy Markdown

@Maklu Maklu commented Mar 26, 2026

Issue for this PR

N/A - New provider addition

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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_LOADERS entry 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?

  1. Ran the full provider test suite (bun test test/provider/provider.test.ts) — all 70 tests pass with no regressions
  2. Ran bun run validate on models.dev with the OfoxAI provider TOML files — all validated successfully
  3. Verified the OfoxAI /v1/models endpoint returns correct model data and /v1/chat/completions responds with proper error format (401 without key, confirming API connectivity)

Screenshots / recordings

N/A - No UI changes

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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).
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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