feat: add Qiniu provider support#6777
Open
JackChiang233 wants to merge 1 commit into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
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
feat
Added support for Qiniu AI (七牛云) as a new model provider.
添加七牛云作为新的模型
🔀 变更说明 | Description of Change
What changed
app/api/qiniu.ts- Implements server-side Qiniu API routes and request handling.app/client/platforms/qiniu.ts- Adds the browser client adapter for the Qiniu provider.app/api/[provider]/[...path]/route.ts- Extends the generic provider proxy to include Qiniu paths.app/api/auth.ts- Wires authentication or token checks for Qiniu-backed requests.app/client/api.ts- Registers Qiniu in the shared client API factory and routing.app/components/settings.tsx- Exposes Qiniu configuration controls in the settings UI.app/config/server.ts- Adds server configuration keys or defaults for Qiniu endpoints.app/constant.ts- Declares Qiniu provider id, models, and related constants.app/locales/cn.ts- Adds Chinese UI strings for Qiniu labels and messages.app/locales/en.ts- Adds English UI strings for Qiniu labels and messages.app/store/access.ts- Persists Qiniu API keys and access state in the app store.变更内容
app/api/qiniu.ts- 实现服务器端 Qiniu API 路由和请求处理。app/client/platforms/qiniu.ts- 为 Qiniu 提供程序添加浏览器客户端适配器。app/api/[provider]/[...path]/route.ts- 扩展通用提供程序代理,使其包含 Qiniu 路径。app/api/auth.ts- 为 Qiniu 支持的请求添加身份验证或令牌检查。app/client/api.ts- 在共享客户端 API 工厂和路由中注册 Qiniu。app/components/settings.tsx- 在设置 UI 中公开 Qiniu 配置控件。app/config/server.ts- 为 Qiniu 端点添加服务器配置键或默认值。app/constant.ts- 声明 Qiniu 提供商 ID、模型和相关常量。app/locales/cn.ts- 为 Qiniu 标签和消息添加中文 UI 字符串。app/locales/en.ts- 为 Qiniu 标签和消息添加英文 UI 字符串。app/store/access.ts- 将 Qiniu API 密钥和访问状态持久化到应用商店。📝 补充信息 | Additional Information
Testing
Result