mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
🐛 fix: unable to toggle SiliconCloud model thinking mode (#10011)
* ✨ fix: 修复 siliconcloud 思考模型开关 * ✨ feat: 更新思考模型参数设置,优化 enable_thinking 和 thinking_budget 逻辑 * ✨ feat: 增强 SiliconCloud API 错误处理,支持提取错误代码和消息 * feat: 使用 TextEncoder 计算响应内容的字节长度,替代 Buffer * 🐛 fix: handle undefined thinking.type in enable_thinking assignment * 🐛 fix: 修复 enable_thinking 赋值时处理 undefined thinking.type 的情况;更新测试以确保错误消息有效 * ✨ feat: 更新 aiModels 文件中的描述为英文,确保符合英语描述规范;移除不必要的字段
This commit is contained in:
@@ -105,6 +105,19 @@ export default eslint(
|
||||
'perfectionist/sort-objects': 0,
|
||||
},
|
||||
},
|
||||
// model-bank aiModels - enforce English-only descriptions
|
||||
{
|
||||
files: ['packages/model-bank/src/aiModels/**/*'],
|
||||
rules: {
|
||||
'no-restricted-syntax': [
|
||||
'error',
|
||||
{
|
||||
message: 'Chinese characters are not allowed in aiModels files. Use English instead.',
|
||||
selector: 'Literal[value=/[\\u4e00-\\u9fff]/]',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
// CLI scripts
|
||||
{
|
||||
files: ['scripts/**/*'],
|
||||
|
||||
Reference in New Issue
Block a user