Skip to content

添加硅基智能模型在线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
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

samonysh
Copy link

@samonysh samonysh commented Apr 17, 2025

#2131
添加硅基智能在线API,
可以自行添加硅基智能模型,要求模型名前添加"siliconflow-"前缀。
添加以下参数:
siliconflow_endpoint = "https://api.siliconflow.cn/v1/chat/completions"
SILICONFLOW_API_KEY,内容为硅基智能API KEY

添加o4-mini、gpt-4.1系列模型

samonysh and others added 20 commits February 5, 2025 14:56
- 在 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant