-
Notifications
You must be signed in to change notification settings - Fork 8.3k
添加硅基智能模型在线API、gpt-4.1系列模型 #2188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
samonysh
wants to merge
20
commits into
binary-husky:master
Choose a base branch
from
samonysh:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
- 在 AVAIL_LLM_MODELS 中添加了多个新的 LLM 模型选项 - 优化了配置文件的格式,提高了可读性 - 在配置文件中添加了部分新功能和插件的设置选项
- 新增硅基智能 API_KEY 配置项 - 在可用模型列表中添加多个 DeepSeek 和其他大语言模型
- 移除了 config.py 文件中的旧模型列表 - 添加了新的模型列表,包括更多可用的大型语言模型 - 优化了代码格式,提高了可读性
- 调整缩进和格式,提高可读性 - 更新注释,明确配置项说明 - 移除冗余配置项 - 统一字符串引号使用单引号
- 移除了大量未使用的模型名称,减少代码冗余 - 保留了部分重要模型,如 Qwen 系列 - 添加了关于硅基智能 API 模型名称获取的注释,方便后续扩展
- 更新 siliconflow_models 列表,添加新模型并调整模型顺序 - 优化模型信息更新逻辑,使用循环替代重复代码 - 区分 DeepSeek-R1 系列模型,添加 enable_reasoning 字段 - 移除未使用的模型信息字段,简化配置结构
将 AVAIL_LLM_MODELS 列表中的全角逗号替换为半角逗号,确保模型名称格式正确。
2. 修改硅基智能模型的请求代码: 2.1. 根据文档,提高max_output_token和模型的max_token。 2.2. 简化模型列表,要求自己添加模型。 2.3. 添加支持推理能力的模型。
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.
#2131
添加硅基智能在线API,
可以自行添加硅基智能模型,要求模型名前添加"siliconflow-"前缀。
添加以下参数:
siliconflow_endpoint = "https://api.siliconflow.cn/v1/chat/completions"
SILICONFLOW_API_KEY,内容为硅基智能API KEY
添加o4-mini、gpt-4.1系列模型