Skip to content

feat: add Qiniu provider support#154

Merged
JackChen-me merged 2 commits into
open-multi-agent:mainfrom
JackChiang233:feat/add-qiniu-provider
Apr 24, 2026
Merged

feat: add Qiniu provider support#154
JackChen-me merged 2 commits into
open-multi-agent:mainfrom
JackChiang233:feat/add-qiniu-provider

Conversation

@JackChiang233

Copy link
Copy Markdown
Contributor

Summary

Added support for Qiniu AI (七牛云) as a new model provider.

What changed

  • src/types.ts - This officially enables Qiniu as an optional model provider in the type system and configuration layer.

  • src/cli/oma.ts - Add qiniu to the CLI provider list and default model mapping.

  • src/llm/adapter.ts - This ensures that the runtime correctly instantiates the corresponding adapter according to provider: "qiniu".

  • src/llm/qiniu.ts - Its purpose is to reuse the OpenAI-compatible protocol to access the Qiniu model with minimal modifications.

  • tests/llm-adapters.test.ts - Add a factory test case for createAdapter("qiniu").

  • tests/qiniu-adapter.test.ts - Added Qiniu adapter-specific tests (name, default env/baseURL, overridable parameters, and factory integration).

Testing

npm vitest run tests/built-in-tools.test.ts 	✅ 45/45
npm test 								✅ 44 files / 658 tests

Checklist

  • npm run lint passes
  • npm test passes

@JackChen-me

Copy link
Copy Markdown
Member

Needs a rebase onto main. #158 moved the three provider?: fields to use the SupportedProvider type alias directly, so the src/types.ts edits here can be dropped (the | 'qiniu' in src/llm/adapter.ts already propagates).

Also worth bringing this up to parity with how DeepSeek (fa4533e) and MiniMax (5305cb2) shipped: README + README_zh (provider table, env vars list, architecture diagram, marketing line, example block), docs/cli.md provider template enum, and examples/providers/qiniu.ts mirroring deepseek.ts. Endpoint api.qnaigc.com/v1 checks out against Qiniu's official docs.

@JackChen-me JackChen-me merged commit eba0381 into open-multi-agent:main Apr 24, 2026
JackChen-me added a commit that referenced this pull request Apr 24, 2026
Mirrors the DeepSeek provider coverage for Qiniu, landing after #154:
- README quick-start env list, Multi-model teams bullet, architecture
  diagram, providers table (Verified), first-class support note, and
  usage snippet with official Qiniu AI inference docs link
- docs/cli.md `oma provider template` list
- examples/providers/qiniu.ts modeled on examples/providers/deepseek.ts
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.

3 participants