Skip to content

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 24 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. 添加支持推理能力的模型。
Copy link

gitguardian bot commented Aug 10, 2025

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
18102161 Triggered Jina API Key f3f5f5f crazy_functions/Internet_GPT.py View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

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