Skip to content

feat: add Astraflow provider support#184

Merged
dwgx merged 1 commit into
dwgx:masterfrom
ucloudnb666:feat/astraflow-1779368769
May 21, 2026
Merged

feat: add Astraflow provider support#184
dwgx merged 1 commit into
dwgx:masterfrom
ucloudnb666:feat/astraflow-1779368769

Conversation

@ucloudnb666
Copy link
Copy Markdown
Contributor

改了什么 / What changed

新增 Astraflow(UCloud)作为 provider,这是一个 OpenAI 兼容的 AI 模型聚合平台,支持 200+ 模型,同时提供全球端点和中国端点。

为什么 / Why

为用户提供更多模型选择,Astraflow 由 UCloud / 优刻得提供,支持 GPT-4o、Claude、DeepSeek、LLaMA、Gemini 等主流模型,且对国内用户有专属中国端点。

测试 / Testing

  • .env 中配置 ASTRAFLOW_API_KEY 后,通过 curl -X POST localhost:3003/v1/chat/completions 请求 astraflow/ 前缀模型,返回了正确的补全结果。
  • 分别验证了全球端点(https://api-us-ca.umodelverse.ai/v1)和中国端点(https://api.modelverse.cn/v1)均可正常路由。

Checklist

  • 代码风格和现有文件一致 / Code style matches existing files
  • 没有引入 npm 依赖 / No new npm dependencies (project is zero-dep)
  • 涉及 LS binary 协议改动时 在 PR 描述里注明字段号来源 / If touching LS protocol, document field-number source in the PR description
  • 涉及 dashboard UI 用 App.confirm / App.prompt 不用浏览器原生 alert/confirm / Uses App.confirm / App.prompt, not native dialogs (if dashboard)

Signed-off-by: ucloudnb666 <ucloudnb666@users.noreply.github.com>
@dwgx dwgx merged commit 11144ff into dwgx:master May 21, 2026
dwgx pushed a commit that referenced this pull request Jun 4, 2026
Signed-off-by: ucloudnb666 <ucloudnb666@users.noreply.github.com>
dwgx pushed a commit that referenced this pull request Jun 4, 2026
Signed-off-by: ucloudnb666 <ucloudnb666@users.noreply.github.com>
dwgx pushed a commit that referenced this pull request Jun 4, 2026
Signed-off-by: ucloudnb666 <ucloudnb666@users.noreply.github.com>
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.

2 participants