feat: add AnyAPI provider#6794
Open
es697 wants to merge 1 commit into
Open
Conversation
Adds AnyAPI (https://anyapi.ai) as a new AI provider option. AnyAPI is a unified AI platform that provides access to hundreds of AI models from OpenAI, Anthropic, Google, Meta, DeepSeek and more through a single OpenAI-compatible API endpoint. Changes: - app/constant.ts: add ANYAPI_BASE_URL, ApiPath, ServiceProvider, ModelProvider, AnyAPI config, model list and DEFAULT_MODELS entry - app/api/anyapi.ts: new API proxy handler - app/client/platforms/anyapi.ts: new client platform class - app/api/[provider]/route.ts: register anyapiHandler - app/api/auth.ts: add AnyAPI auth case - app/client/api.ts: add AnyAPI to ClientApi, getHeaders, getClientApi - app/components/settings.tsx: add AnyAPI config component in UI - app/config/server.ts: add ANYAPI_URL/ANYAPI_API_KEY env vars - app/store/access.ts: add anyapiUrl/anyapiApiKey store state - app/locales/en.ts, app/locales/cn.ts: add AnyAPI translations - README.md, README_CN.md: add env var documentation
0588b40 to
96b57d9
Compare
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.
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
📝 补充信息 | Additional Information