feat: add Qiniu provider support#2777
Open
JackChiang233 wants to merge 3 commits intozhayujie:masterfrom
Open
Conversation
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. This integration allows users to utilize Qiniu's LLM infrastructure within the framework.
Changes Made
config.py- Added Qiniu API Key and Base configurations and mapped them to environment variables, enabling the system to configure and use Qiniu MaaS services.bridge\agent_bridge.py`bridge\bridge.py` - Added an exact matching rule for Qiniu's default model to ensure that requests for this model are directly routed to the Qiniu provider.channel\web\web_channel.py- Integrate Qiniu Cloud into the unified provider configuration system, making it visible, configurable, and savable in the web configuration page.common\const.py- Add new Qiniu-related constants and register a default model as a globally unified identifier to support Qiniu provider access and routing.models\bot_factory.py- Register the Qiniu branch in the Bot factory to ensure that the QINIU type can be correctly instantiated as a Qiniu Bot implementation.models\qiniu\qiniu_bot.py\models\qiniu\qiniu_session.py- Implement Qiniu dialogue invocation and session management (API requests + context trimming) to improve the actual operational capabilities of the Qiniu provider.plugins\cow_cli\cow_cli.py- Added Qiniu model recognition logic to the CLI, enabling automatic matching of the Qiniu provider when the default Qiniu model is selected.plugins\godcmd\godcmd.py- const.QINIU has been added to the whitelist of models set to #resetall.Testing