Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🌐 chore: translate non-English comments to English in siliconcloud provider (#12190)

LobeHub Bot0e688d08b8b3
diff --git a/packages/model-runtime/src/providers/siliconcloud/index.test.ts b/packages/model-runtime/src/providers/siliconcloud/index.test.ts
index 28ebf8245ef..33f07d2954f 100644
--- a/packages/model-runtime/src/providers/siliconcloud/index.test.ts
+++ b/packages/model-runtime/src/providers/siliconcloud/index.test.ts
@@ -170,7 +170,7 @@ describe('LobeSiliconCloudAI - custom features', () => {
});
} catch (e: any) {
expect(e.errorType).toBe(AgentRuntimeErrorType.ProviderBizError);
- expect(e.message).toContain('请检查 API Key 余额是否充足');
+ expect(e.message).toContain('Please check if the API Key balance is sufficient');
}
});
});
diff --git a/packages/model-runtime/src/providers/siliconcloud/index.ts b/packages/model-runtime/src/providers/siliconcloud/index.ts
index 145e90f646b..0e3f71ec801 100644
--- a/packages/model-runtime/src/providers/siliconcloud/index.ts
+++ b/packages/model-runtime/src/providers/siliconcloud/index.ts
@@ -36,7 +36,7 @@ export const params = {
error: errorResponse.status,
errorType: AgentRuntimeErrorType.ProviderBizError,
message:
- '请检查 API Key 余额是否充足,或者是否在用未实名的 API Key 访问需要实名的模型。',
+ 'Please check if the API Key balance is sufficient, or if you are using an unverified API Key to access models that require verification.',
};
}
}
@@ -57,10 +57,10 @@ export const params = {
};
if (thinking) {
- // 只有部分模型支持指定 enable_thinking,其余一些慢思考模型只支持调节 thinking budget
+ // Only some models support specifying enable_thinking, while other slow-thinking models only support adjusting thinking budget
const hybridThinkingModels = [
- /GLM-4\.5(?!.*Air$)/, // GLM-4.5 和 GLM-4.5V(不包含 GLM-4.5 Air)
- /Qwen3-(?:\d+B|\d+B-A\d+B)$/, // Qwen3-8B、Qwen3-14B、Qwen3-32B、Qwen3-30B-A3B、Qwen3-235B-A22B
+ /GLM-4\.5(?!.*Air$)/, // GLM-4.5 and GLM-4.5V (excluding GLM-4.5 Air)
+ /Qwen3-(?:\d+B|\d+B-A\d+B)$/, // Qwen3-8B, Qwen3-14B, Qwen3-32B, Qwen3-30B-A3B, Qwen3-235B-A22B
/DeepSeek-V3\.1/,
/Hunyuan-A13B-Instruct/,
];