feat: add Qiniu provider support#154
Merged
JackChen-me merged 2 commits intoApr 24, 2026
Merged
Conversation
Member
|
Needs a rebase onto main. #158 moved the three 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), |
2 tasks
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
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.
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
Checklist
npm run lintpassesnpm testpasses