Skip to content

feat: add Qiniu provider support#6777

Open
JackChiang233 wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
JackChiang233:feat/add-qiniu-provider
Open

feat: add Qiniu provider support#6777
JackChiang233 wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
JackChiang233:feat/add-qiniu-provider

Conversation

@JackChiang233

Copy link
Copy Markdown

💻 变更类型 | 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

node --no-warnings --experimental-vm-modules ./node_modules/jest/bin/jest.js ./test --ci
# 17 passed 0 failed

Result

屏幕截图 2026-05-14 110146
屏幕截图 2026-05-14 110227
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant