diff --git a/src/shared/api.ts b/src/shared/api.ts index e4b245bb..fd0d2d37 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -1508,6 +1508,38 @@ export const shengsuanyunModels = { inputPrice: 0.1, outputPrice: 0.4, }, + "google/gemini-2.5-pro-preview-03-25": { + maxTokens: 66_000, + contextWindow: 1000_000, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 1.25, + outputPrice: 10, + }, + "openai/gpt-4o-2024-11-20": { + maxTokens: 16_000, + contextWindow: 128_000, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 5, + outputPrice: 15, + }, + "openai/gpt-4o-mini": { + maxTokens: 16_000, + contextWindow: 128_000, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.15, + outputPrice: 0.6, + }, + "doubao/doubao-pro-256k": { + maxTokens: 4_000, + contextWindow: 33_000, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.68, + outputPrice: 1.22, + }, "deepseek/deepseek-v3": { maxTokens: 164_000, contextWindow: 164_000, diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 0e2dcd0a..b7f63474 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -189,7 +189,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi color: errorColor, marginBottom: "-1.5px", }}>, - Error, + 错误, ] case "mistake_limit_reached": return [ @@ -199,7 +199,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi color: errorColor, marginBottom: "-1.5px", }}>, - Cline is having trouble..., + Cline 出错了..., ] case "auto_approval_max_req_reached": return [ @@ -209,7 +209,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi color: errorColor, marginBottom: "-1.5px", }}>, - Maximum Requests Reached, + 达到最大请求数, ] case "command": return [ @@ -223,7 +223,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi marginBottom: "-1.5px", }}> ), - Cline wants to execute this command:, + Cline 需要执行这个命令:, ] case "use_mcp_server": const mcpServerUse = JSON.parse(message.text || "{}") as ClineAskUseMcpServer @@ -254,7 +254,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi color: successColor, marginBottom: "-1.5px", }}>, - Task Completed, + 任务完成, ] case "api_req_started": const getIconSpan = (iconName: string, color: string) => ( @@ -292,21 +292,21 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi (() => { if (apiReqCancelReason != null) { return apiReqCancelReason === "user_cancelled" ? ( - API Request Cancelled + API 请求被取消 ) : ( - API Streaming Failed + API 流式输出失败 ) } if (cost != null) { - return API Request + return API 请求 } if (apiRequestFailedMessage) { - return API Request Failed + return API 请求失败 } - return API Request... + return API 请求... })(), ] case "followup": @@ -317,7 +317,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi color: normalColor, marginBottom: "-1.5px", }}>, - Cline has a question:, + Cline 需要知道:, ] default: return [null, null] @@ -361,7 +361,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi <>
{tool.regex}:
+ Cline 需要查找这个目录 {tool.regex}:
{message.text} which is blocked by the{" "}
- .clineignore
- file.
+ Cline 尝试读取 {message.text} 文件被 .clineignore阻止
CMD/CTRL + Shift + P → "Update") and make sure you're using a supported shell:
- zsh, bash, fish, or PowerShell (CMD/CTRL + Shift + P → "Terminal: Select Default
- Profile").{" "}
+ Cline 将无法查看命令的输出。请更新 VSCode (CMD/CTRL + Shift + P → "更新")
+ 并确保你使用的是受支持的 shell: zsh、bash、fish 或 PowerShell(
+ CMD/CTRL + Shift + P → "Terminal: Select Default Profile").{" "}
- Still having trouble?
+ 仍有问题?