feat: Add Astraflow (UCloud ModelVerse) LLM provider support#2378
Open
ucloudnb666 wants to merge 7 commits intoarc53:mainfrom
Open
feat: Add Astraflow (UCloud ModelVerse) LLM provider support#2378ucloudnb666 wants to merge 7 commits intoarc53:mainfrom
ucloudnb666 wants to merge 7 commits intoarc53:mainfrom
Conversation
|
@ucloudnb666 is attempting to deploy a commit to the Arc53 Team on Vercel. A member of the Team first needs to authorize it. |
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
Adds Astraflow (UCloud ModelVerse) as a supported LLM provider in DocsGPT, including both the global endpoint and the China-region endpoint.
Changes
New File
application/llm/astraflow.py— DefinesAstraflowLLM(global) andAstraflowCNLLM(China) classes, both extendingOpenAILLM.Modified Files
application/llm/llm_creator.py— Imports and registersAstraflowLLM/AstraflowCNLLMunder primary keys"astraflow"and"astraflow-cn", plus all required aliases ("astra-flow","astra_flow","modelverse","astraflow-china","astraflow_cn").application/core/settings.py— AddsASTRAFLOW_API_KEYandASTRAFLOW_CN_API_KEYfields; includes both in the sensitive-keys validator.application/core/model_utils.py— Adds"astraflow"and"astraflow-cn"entries to the provider-to-API-key mapping.application/core/model_settings.py— AddsASTRAFLOWandASTRAFLOW_CNto theModelProviderenum; adds_add_astraflow_modelsand_add_astraflow_cn_modelsmethods; registers them in_load_models.application/core/model_configs.py— AddsASTRAFLOW_ATTACHMENTS,ASTRAFLOW_MODELS, andASTRAFLOW_CN_MODELSlists with representative DeepSeek models..env-template— Adds commented-out entries for the two new API key variables.Naming Convention
astraflowastraflow-cnastra-flow,astra_flow,modelverseastraflowastraflow-china,astraflow_cnastraflow-cnEnvironment Variables