feat(provider): support OfoxAI as system provider#14927
Open
Gtr206 wants to merge 4 commits into
Open
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.
OfoxAI (https://ofox.ai) is a unified LLM API gateway that provides access to 100+ models — including OpenAI, Anthropic, Google Gemini, Meta Llama, DeepSeek, Qwen, Mistral, and more — through a single API key. It is wire-compatible with the OpenAI, Anthropic, and Gemini protocols, so users can switch between models with one credential.
Adding OfoxAI as a system provider gives Cherry Studio users another option for centralized model access alongside AiHubMix, OpenRouter, etc.
What this PR adds
types/provider.ts: register'ofoxai'inSystemProviderIdSchemaandSystemProviderIds.config/providers.ts:ofoxai.png)SYSTEM_PROVIDERS_CONFIGentry — typeopenai,apiHost: https://api.ofox.ai/v1,anthropicApiHost: https://api.ofox.ai/anthropicPROVIDER_LOGO_MAPentryPROVIDER_URLSentry pointing athttps://ofox.ai,https://app.ofox.ai, andhttps://docs.ofox.aiconfig/models/default.ts: 10 representative predefined models (GPT-4o family, Claude Sonnet, Gemini 2.5, DeepSeek V3/R1, Qwen-coder). Users can add any other OfoxAI model manually.assets/images/providers/ofoxai.png: provider logo.Notes for reviewers
enabled: falseby default — users have to explicitly enable it and enter their API key, same as every other system provider.apiHostandanthropicApiHost), so Claude prompt-caching support can be added later by including'ofoxai'inisSupportAnthropicPromptCacheProvider. Left out of this PR to keep it minimal — happy to follow up if maintainers want it included.