This commit is contained in:
HybridTalentComputing committed 2026-05-25 15:36:49 +08:00
1 parent 085fa925c1
commit cba06aa590
41 files changed
+370 -190

No files matched your search

+77 -25
View File
@@ -5596,7 +5596,8 @@
"optional": true,
"os": [
"android"
]
],
"peer": true
},
"node_modules/@rollup/rollup-android-arm64": {
"version": "4.60.0",
@@ -5609,7 +5610,8 @@
"optional": true,
"os": [
"android"
]
],
"peer": true
},
"node_modules/@rollup/rollup-darwin-arm64": {
"version": "4.60.0",
@@ -5622,7 +5624,8 @@
"optional": true,
"os": [
"darwin"
]
],
"peer": true
},
"node_modules/@rollup/rollup-darwin-x64": {
"version": "4.60.0",
@@ -5635,7 +5638,8 @@
"optional": true,
"os": [
"darwin"
]
],
"peer": true
},
"node_modules/@rollup/rollup-freebsd-arm64": {
"version": "4.60.0",
@@ -5648,7 +5652,8 @@
"optional": true,
"os": [
"freebsd"
]
],
"peer": true
},
"node_modules/@rollup/rollup-freebsd-x64": {
"version": "4.60.0",
@@ -5661,7 +5666,8 @@
"optional": true,
"os": [
"freebsd"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
"version": "4.60.0",
@@ -5674,7 +5680,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
"version": "4.60.0",
@@ -5687,7 +5694,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-arm64-gnu": {
"version": "4.60.0",
@@ -5700,7 +5708,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-arm64-musl": {
"version": "4.60.0",
@@ -5713,7 +5722,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-loong64-gnu": {
"version": "4.60.0",
@@ -5726,7 +5736,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-loong64-musl": {
"version": "4.60.0",
@@ -5739,7 +5750,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-ppc64-gnu": {
"version": "4.60.0",
@@ -5752,7 +5764,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-ppc64-musl": {
"version": "4.60.0",
@@ -5765,7 +5778,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
"version": "4.60.0",
@@ -5778,7 +5792,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-riscv64-musl": {
"version": "4.60.0",
@@ -5791,7 +5806,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-s390x-gnu": {
"version": "4.60.0",
@@ -5804,7 +5820,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.60.0",
@@ -5817,7 +5834,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-linux-x64-musl": {
"version": "4.60.0",
@@ -5830,7 +5848,8 @@
"optional": true,
"os": [
"linux"
]
],
"peer": true
},
"node_modules/@rollup/rollup-openbsd-x64": {
"version": "4.60.0",
@@ -5843,7 +5862,8 @@
"optional": true,
"os": [
"openbsd"
]
],
"peer": true
},
"node_modules/@rollup/rollup-openharmony-arm64": {
"version": "4.60.0",
@@ -5856,7 +5876,8 @@
"optional": true,
"os": [
"openharmony"
]
],
"peer": true
},
"node_modules/@rollup/rollup-win32-arm64-msvc": {
"version": "4.60.0",
@@ -5869,7 +5890,8 @@
"optional": true,
"os": [
"win32"
]
],
"peer": true
},
"node_modules/@rollup/rollup-win32-ia32-msvc": {
"version": "4.60.0",
@@ -5882,7 +5904,8 @@
"optional": true,
"os": [
"win32"
]
],
"peer": true
},
"node_modules/@rollup/rollup-win32-x64-gnu": {
"version": "4.60.0",
@@ -5895,7 +5918,8 @@
"optional": true,
"os": [
"win32"
]
],
"peer": true
},
"node_modules/@rollup/rollup-win32-x64-msvc": {
"version": "4.60.0",
@@ -5908,7 +5932,8 @@
"optional": true,
"os": [
"win32"
]
],
"peer": true
},
"node_modules/@sap-ai-sdk/ai-api": {
"version": "2.7.0",
@@ -22145,6 +22170,7 @@
"os": [
"aix"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22161,6 +22187,7 @@
"os": [
"android"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22177,6 +22204,7 @@
"os": [
"android"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22193,6 +22221,7 @@
"os": [
"android"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22209,6 +22238,7 @@
"os": [
"darwin"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22225,6 +22255,7 @@
"os": [
"darwin"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22241,6 +22272,7 @@
"os": [
"freebsd"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22257,6 +22289,7 @@
"os": [
"freebsd"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22273,6 +22306,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22289,6 +22323,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22305,6 +22340,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22321,6 +22357,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22337,6 +22374,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22353,6 +22391,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22369,6 +22408,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22385,6 +22425,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22401,6 +22442,7 @@
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22417,6 +22459,7 @@
"os": [
"netbsd"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22433,6 +22476,7 @@
"os": [
"netbsd"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22449,6 +22493,7 @@
"os": [
"openbsd"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22465,6 +22510,7 @@
"os": [
"openbsd"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22481,6 +22527,7 @@
"os": [
"openharmony"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22497,6 +22544,7 @@
"os": [
"sunos"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22513,6 +22561,7 @@
"os": [
"win32"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22529,6 +22578,7 @@
"os": [
"win32"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22545,6 +22595,7 @@
"os": [
"win32"
],
"peer": true,
"engines": {
"node": ">=18"
}
@@ -22600,6 +22651,7 @@
"os": [
"darwin"
],
"peer": true,
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
@@ -210,9 +210,7 @@ export const CommandOutputRow = memo(
onCancelCommand?.()
} else {
// For regular terminal mode, show a message
alert(
"This command is running in the VSCode terminal. You can manually stop it using Ctrl+C in the terminal, or switch to Background Execution mode in settings for cancellable commands.",
)
alert(t("commandOutput.terminalWarning"))
}
}}
size="sm"
+11 -11
View File
@@ -13,37 +13,37 @@ const FEATURE_TIPS: FeatureTipItem[] = [
text: i18next.t("featureTips.doubleCheckCompletion"),
},
{
text: "Add a .clinerules file to your project root to give Cline project-specific instructions.",
text: i18next.t("featureTips.clinerulesFile"),
},
{
text: "Switch to Plan Mode to discuss and plan an approach before Cline takes action.",
text: i18next.t("featureTips.planMode"),
},
{
text: "Use @ in the chat input to add files, folders, or URLs as context for your task.",
text: i18next.t("featureTips.useAtContext"),
},
{
text: "Set up MCP Servers to give Cline access to external tools and APIs.",
text: i18next.t("featureTips.mcpServers"),
},
{
text: "Cline creates checkpoints after changes — you can always restore to a previous state.",
text: i18next.t("featureTips.checkpoints"),
},
{
text: "Use /compact to condense long conversations and free up context window space.",
text: i18next.t("featureTips.compactCommand"),
},
{
text: "Enable auto-approve for read-only tools like file reads to speed up exploration.",
text: i18next.t("featureTips.autoApprove"),
},
{
text: "Use the quote button to select text from Cline's response and reference it in your reply.",
text: i18next.t("featureTips.quoteButton"),
},
{
text: "You can drag and drop images into the chat to share screenshots with Cline.",
text: i18next.t("featureTips.dragDropImages"),
},
{
text: "Cline can browse websites — ask it to test your local dev server in the browser.",
text: i18next.t("featureTips.browseWebsites"),
},
{
text: "Use /reportbug to quickly file a GitHub issue with diagnostic context included.",
text: i18next.t("featureTips.reportBug"),
},
{
text: i18next.t("featureTips.disableTips"),
@@ -265,7 +265,7 @@ export default function SubagentStatusRow({ message, isLast, lastModifiedMessage
) : (
<ChevronRightIcon className="size-2 shrink-0" />
)}
<span className="shrink-0">{isExpanded ? "Hide output" : "Show output"}</span>
<span className="shrink-0">{isExpanded ? t("subagent.hideSubagentOutput") : t("subagent.showSubagentOutput")}</span>
</button>
)}
{shouldShowStats && !hasDetails && latestToolCallText && (
@@ -108,7 +108,7 @@ const TaskFeedbackButtons: React.FC<TaskFeedbackButtonsProps> = ({ messageTs, is
href="https://github.com/cline/cline/issues/new?template=bug_report.yml"
appearance="icon"
title="Report a bug"
aria-label="Report a bug">
aria-label={t("reportBug.title")}>
<span className="codicon codicon-bug" />
</VSCodeButtonLink> */}
</ButtonsContainer>
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next"
import { useExtensionState } from "@/context/ExtensionStateContext"
import { getAsVar, VSC_TITLEBAR_INACTIVE_FOREGROUND } from "@/utils/vscStyles"
import AutoApproveModal from "./AutoApproveModal"
import { ACTION_METADATA } from "./constants"
import { getActionMetadata } from "./constants"
interface AutoApproveBarProps {
style?: React.CSSProperties
@@ -31,7 +31,7 @@ const AutoApproveBar = ({ style }: AutoApproveBarProps) => {
(key) => autoApprovalSettings.actions[key as keyof typeof autoApprovalSettings.actions],
)
const enabledActions = enabledActionsNames.map((action) => {
return ACTION_METADATA.flatMap((a) => [a, a.subAction]).find((a) => a?.id === action)
return getActionMetadata().flatMap((a) => [a, a.subAction]).find((a) => a?.id === action)
})
// Filter out parent actions if their subaction is also enabled (show only subaction)
@@ -167,7 +167,7 @@ const AutoApproveBar = ({ style }: AutoApproveBarProps) => {
</div>
<AutoApproveModal
ACTION_METADATA={ACTION_METADATA}
ACTION_METADATA={getActionMetadata()}
buttonRef={buttonRef}
isVisible={isModalVisible}
setIsVisible={setIsModalVisible}
@@ -1,62 +1,67 @@
import i18next from "i18next"
import { ActionMetadata } from "./types"
export const ACTION_METADATA: ActionMetadata[] = [
{
id: "readFiles",
label: "Read project files",
shortName: "Read",
icon: "codicon-search",
subAction: {
id: "readFilesExternally",
label: "Read all files",
shortName: "Read (all)",
icon: "codicon-folder-opened",
parentActionId: "readFiles",
export function getActionMetadata(): ActionMetadata[] {
return [
{
id: "readFiles",
label: i18next.t("autoApprove.readProjectFiles"),
shortName: i18next.t("autoApprove.read"),
icon: "codicon-search",
subAction: {
id: "readFilesExternally",
label: i18next.t("autoApprove.readAllFiles"),
shortName: i18next.t("autoApprove.readAll"),
icon: "codicon-folder-opened",
parentActionId: "readFiles",
},
},
},
{
id: "editFiles",
label: "Edit project files",
shortName: "Edit",
icon: "codicon-edit",
subAction: {
id: "editFilesExternally",
label: "Edit all files",
shortName: "Edit (all)",
icon: "codicon-files",
parentActionId: "editFiles",
{
id: "editFiles",
label: i18next.t("autoApprove.editProjectFiles"),
shortName: i18next.t("autoApprove.edit"),
icon: "codicon-edit",
subAction: {
id: "editFilesExternally",
label: i18next.t("autoApprove.editAllFiles"),
shortName: i18next.t("autoApprove.editAll"),
icon: "codicon-files",
parentActionId: "editFiles",
},
},
},
{
id: "executeSafeCommands",
label: "Execute safe commands",
shortName: "Safe Commands",
icon: "codicon-terminal",
subAction: {
id: "executeAllCommands",
label: "Execute all commands",
shortName: "All Commands",
icon: "codicon-terminal-bash",
parentActionId: "executeSafeCommands",
{
id: "executeSafeCommands",
label: i18next.t("autoApprove.executeSafeCommands"),
shortName: i18next.t("autoApprove.safeCommands"),
icon: "codicon-terminal",
subAction: {
id: "executeAllCommands",
label: i18next.t("autoApprove.executeAllCommands"),
shortName: i18next.t("autoApprove.allCommands"),
icon: "codicon-terminal-bash",
parentActionId: "executeSafeCommands",
},
},
},
{
id: "useBrowser",
label: "Use the browser",
shortName: "Browser",
icon: "codicon-globe",
},
{
id: "useMcp",
label: "Use MCP servers",
shortName: "MCP",
icon: "codicon-server",
},
]
{
id: "useBrowser",
label: i18next.t("autoApprove.useBrowser"),
shortName: i18next.t("autoApprove.browser"),
icon: "codicon-globe",
},
{
id: "useMcp",
label: i18next.t("autoApprove.useMcpServers"),
shortName: i18next.t("autoApprove.mcp"),
icon: "codicon-server",
},
]
}
export const NOTIFICATIONS_SETTING: ActionMetadata = {
id: "enableNotifications",
label: "Enable notifications",
shortName: "Notifications",
icon: "codicon-bell",
export function getNotificationsSetting(): ActionMetadata {
return {
id: "enableNotifications",
label: i18next.t("autoApprove.enableNotifications"),
shortName: i18next.t("autoApprove.notifications"),
icon: "codicon-bell",
}
}
@@ -105,7 +105,7 @@ const NewRuleRow: React.FC<NewRuleRowProps> = ({ isGlobal, ruleType, existingHoo
setError(null)
setIsExpanded(false)
} catch (err) {
setError(err instanceof Error ? err.message : "Failed to create skill")
setError(err instanceof Error ? err.message : t("rules.newRule.failedToCreateSkill"))
}
return
}
+22 -22
View File
@@ -53,16 +53,16 @@ function Demo() {
<VSCodeDataGrid>
<VSCodeDataGridRow row-type="header">
<VSCodeDataGridCell cell-type="columnheader" grid-column="1">
A Custom Header Title
{t("demo.customHeaderTitle")}
</VSCodeDataGridCell>
<VSCodeDataGridCell cell-type="columnheader" grid-column="2">
Another Custom Title
{t("demo.anotherCustomTitle")}
</VSCodeDataGridCell>
<VSCodeDataGridCell cell-type="columnheader" grid-column="3">
Title Is Custom
{t("demo.titleIsCustom")}
</VSCodeDataGridCell>
<VSCodeDataGridCell cell-type="columnheader" grid-column="4">
Custom Title
{t("demo.customTitle")}
</VSCodeDataGridCell>
</VSCodeDataGridRow>
{rowData.map((row, index) => (
@@ -77,13 +77,13 @@ function Demo() {
<VSCodeTextField>
<section slot="end" style={{ display: "flex", alignItems: "center" }}>
<VSCodeButton appearance="icon" aria-label="Match Case">
<VSCodeButton appearance="icon" aria-label={t("demo.matchCase")}>
<span className="codicon codicon-case-sensitive" />
</VSCodeButton>
<VSCodeButton appearance="icon" aria-label="Match Whole Word">
<VSCodeButton appearance="icon" aria-label={t("demo.matchWholeWord")}>
<span className="codicon codicon-whole-word" />
</VSCodeButton>
<VSCodeButton appearance="icon" aria-label="Use Regular Expression">
<VSCodeButton appearance="icon" aria-label={t("demo.useRegularExpression")}>
<span className="codicon codicon-regex" />
</VSCodeButton>
</section>
@@ -93,30 +93,30 @@ function Demo() {
<span className="flex gap-3">
<VSCodeProgressRing />
<VSCodeTextField />
<VSCodeButton>Add</VSCodeButton>
<VSCodeButton appearance="secondary">Remove</VSCodeButton>
<VSCodeButton>{t("demo.add")}</VSCodeButton>
<VSCodeButton appearance="secondary">{t("demo.remove")}</VSCodeButton>
</span>
<VSCodeBadge>Badge</VSCodeBadge>
<VSCodeCheckbox>Checkbox</VSCodeCheckbox>
<VSCodeBadge>{t("demo.badge")}</VSCodeBadge>
<VSCodeCheckbox>{t("demo.checkbox")}</VSCodeCheckbox>
<VSCodeDivider />
<VSCodeDropdown>
<VSCodeOption>Option 1</VSCodeOption>
<VSCodeOption>Option 2</VSCodeOption>
<VSCodeOption>{t("demo.option1")}</VSCodeOption>
<VSCodeOption>{t("demo.option2")}</VSCodeOption>
</VSCodeDropdown>
<VSCodeLink href="#">Link</VSCodeLink>
<VSCodeLink href="#">{t("demo.link")}</VSCodeLink>
<VSCodePanels>
<VSCodePanelTab id="tab-1">Tab 1</VSCodePanelTab>
<VSCodePanelTab id="tab-2">Tab 2</VSCodePanelTab>
<VSCodePanelView id="view-1">Panel View 1</VSCodePanelView>
<VSCodePanelView id="view-2">Panel View 2</VSCodePanelView>
<VSCodePanelTab id="tab-1">{t("demo.tab1")}</VSCodePanelTab>
<VSCodePanelTab id="tab-2">{t("demo.tab2")}</VSCodePanelTab>
<VSCodePanelView id="view-1">{t("demo.panelView1")}</VSCodePanelView>
<VSCodePanelView id="view-2">{t("demo.panelView2")}</VSCodePanelView>
</VSCodePanels>
<VSCodeRadioGroup>
<VSCodeRadio>Radio 1</VSCodeRadio>
<VSCodeRadio>Radio 2</VSCodeRadio>
<VSCodeRadio>{t("demo.radio1")}</VSCodeRadio>
<VSCodeRadio>{t("demo.radio2")}</VSCodeRadio>
</VSCodeRadioGroup>
<VSCodeTag>Tag</VSCodeTag>
<VSCodeTextArea placeholder="Text Area" />
<VSCodeTag>{t("demo.tag")}</VSCodeTag>
<VSCodeTextArea placeholder={t("demo.textAreaPlaceholder")} />
</div>
</main>
)
@@ -81,7 +81,7 @@ const LinkPreview: React.FC<LinkPreviewProps> = ({ url }) => {
setHasCompletedFetch(true)
} else {
setError("network")
setErrorMessage("Failed to fetch Open Graph data")
setErrorMessage(t("mcp.chatDisplay.failedToFetchOpenGraph"))
setLoading(false)
setHasCompletedFetch(true)
}
@@ -93,7 +93,7 @@ const LinkPreview: React.FC<LinkPreviewProps> = ({ url }) => {
}, 1000)
} catch (err) {
setError("general")
setErrorMessage(err instanceof Error ? err.message : "Unknown error occurred")
setErrorMessage(err instanceof Error ? err.message : t("mcp.chatDisplay.unknownError"))
setLoading(false)
setHasCompletedFetch(true)
cleanup()
@@ -83,7 +83,7 @@ const AddRemoteServerForm = ({ onServerAdded }: { onServerAdded: () => void }) =
setServerName((e.target as HTMLInputElement).value)
setError("")
}}
placeholder="mcp-server"
placeholder={t("mcp.addRemoteServer.serverNamePlaceholder")}
value={serverName}>
{t("mcp.addRemoteServer.serverName")}
</VSCodeTextField>
@@ -97,7 +97,7 @@ const AddRemoteServerForm = ({ onServerAdded }: { onServerAdded: () => void }) =
setServerUrl((e.target as HTMLInputElement).value)
setError("")
}}
placeholder="https://example.com/mcp-server"
placeholder={t("mcp.addRemoteServer.serverUrlPlaceholder")}
value={serverUrl}>
{t("mcp.addRemoteServer.serverUrl")}
</VSCodeTextField>
@@ -218,7 +218,7 @@ const BasetenModelPicker: React.FC<BasetenModelPickerProps> = ({ isPopup, curren
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close flex justify-center items-center h-full"
onClick={() => {
setSearchTerm("")
@@ -465,7 +465,7 @@ const ClineModelPicker: React.FC<ClineModelPickerProps> = ({ isPopup, currentMod
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
setSearchTerm("")
@@ -567,7 +567,7 @@ const ClineModelPicker: React.FC<ClineModelPickerProps> = ({ isPopup, currentMod
currentMode={currentMode}
defaultEffort={showAdaptiveThinkingEffort ? adaptiveThinkingDefaultEffort : "medium"}
description={showAdaptiveThinkingEffort ? t("settings.adaptiveThinkingDescription") : undefined}
label={showAdaptiveThinkingEffort ? "Adaptive Thinking" : undefined}
label={showAdaptiveThinkingEffort ? t("settings.adaptiveThinking") : undefined}
/>
)}
@@ -215,7 +215,7 @@ const GroqModelPicker: React.FC<GroqModelPickerProps> = ({ isPopup, currentMode
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close flex justify-center items-center h-full"
onClick={() => {
setSearchTerm("")
@@ -187,7 +187,7 @@ const HicapModelPicker: React.FC<HicapModelPickerProps> = ({ isPopup, currentMod
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="flex justify-center items-center h-full input-icon-button codicon codicon-close"
onClick={() => {
setSearchTerm("")
@@ -187,7 +187,7 @@ const HuggingFaceModelPicker: React.FC<HuggingFaceModelPickerProps> = ({ isPopup
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
setSearchTerm("")
@@ -146,7 +146,7 @@ const OllamaModelPicker: React.FC<OllamaModelPickerProps> = ({ ollamaModels, sel
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
handleModelChange("")
@@ -276,7 +276,7 @@ const OpenRouterModelPicker: React.FC<OpenRouterModelPickerProps> = ({ isPopup,
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
setSearchTerm("")
@@ -382,7 +382,7 @@ const OpenRouterModelPicker: React.FC<OpenRouterModelPickerProps> = ({ isPopup,
? "Use None to disable adaptive thinking. Higher effort increases response detail and token usage."
: undefined
}
label={showAdaptiveThinkingEffort ? "Adaptive Thinking" : undefined}
label={showAdaptiveThinkingEffort ? t("settings.adaptiveThinking") : undefined}
/>
)}
@@ -210,7 +210,7 @@ const RequestyModelPicker: React.FC<RequestyModelPickerProps> = ({ isPopup, base
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
handleModelChange("")
@@ -85,8 +85,8 @@ export const SETTINGS_TABS: SettingsTab[] = [
{
id: "remote-config",
name: "Remote Config",
tooltipText: "Remotely configured fields",
headerText: "Remote Config",
tooltipText: t("settingsSections.remoteConfigTooltip"),
headerText: t("settingsSections.remoteConfigHeader"),
icon: HardDriveDownload,
hidden: ({ activeOrganization } = { activeOrganization: null }) =>
!activeOrganization || !isAdminOrOwner(activeOrganization),
@@ -158,7 +158,7 @@ const ThinkingBudgetSlider = ({ currentMode, maxBudget, showEnableToggle = true
$min={0}
$value={localValue}
aria-describedby="thinking-budget-description"
aria-label={`Thinking budget: ${localValue.toLocaleString()} tokens`}
aria-label={t("settings.thinkingBudgetLabel", { value: localValue.toLocaleString() })}
aria-valuemax={maxBudget || ANTHROPIC_MAX_THINKING_BUDGET}
aria-valuemin={ANTHROPIC_MIN_THINKING_BUDGET}
aria-valuenow={localValue}
@@ -232,7 +232,7 @@ const VercelModelPicker: React.FC<VercelModelPickerProps> = ({ isPopup, currentM
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
setSearchTerm("")
@@ -294,7 +294,7 @@ const VercelModelPicker: React.FC<VercelModelPickerProps> = ({ isPopup, currentM
? "Use None to disable adaptive thinking. Higher effort increases response detail and token usage."
: undefined
}
label={showAdaptiveThinkingEffort ? "Adaptive Thinking" : undefined}
label={showAdaptiveThinkingEffort ? t("settings.adaptiveThinking") : undefined}
/>
)}
@@ -2,6 +2,7 @@ import { ModelInfo } from "@shared/api"
import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react"
import Fuse from "fuse.js"
import { KeyboardEvent, useEffect, useId, useMemo, useRef, useState } from "react"
import { useTranslation } from "react-i18next"
import styled from "styled-components"
import { highlight } from "../../history/HistoryView"
@@ -21,9 +22,12 @@ export const ModelAutocomplete = ({
selectedModelId,
onChange,
zIndex = AUTOCOMPLETE_Z_INDEX,
label = "Model",
placeholder = "Search and select a model...",
label,
placeholder,
}: ModelAutocompleteProps) => {
const { t } = useTranslation("settings")
const effectiveLabel = label ?? t("settings.modelAutocomplete.modelLabel")
const effectivePlaceholder = placeholder ?? t("settings.modelAutocomplete.searchPlaceholder")
const [searchTerm, setSearchTerm] = useState(selectedModelId || "")
const [isDropdownVisible, setIsDropdownVisible] = useState(false)
const [selectedIndex, setSelectedIndex] = useState(-1)
@@ -154,7 +158,7 @@ export const ModelAutocomplete = ({
</style>
<div style={{ display: "flex", flexDirection: "column" }}>
<label htmlFor={inputId}>
<span style={{ fontWeight: 500 }}>{label}</span>
<span style={{ fontWeight: 500 }}>{effectiveLabel}</span>
</label>
<DropdownWrapper ref={dropdownRef}>
@@ -179,7 +183,7 @@ export const ModelAutocomplete = ({
setIsDropdownVisible(true)
}}
onKeyDown={handleKeyDown}
placeholder={placeholder}
placeholder={effectivePlaceholder}
role="combobox"
style={{
width: "100%",
@@ -189,7 +193,7 @@ export const ModelAutocomplete = ({
value={searchTerm}>
{searchTerm && (
<div
aria-label="Clear search"
aria-label={t("settings.modelAutocomplete.clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
setSearchTerm("")
@@ -207,7 +211,7 @@ export const ModelAutocomplete = ({
</VSCodeTextField>
{isDropdownVisible && (
<DropdownList
aria-label="Model suggestions"
aria-label={t("settings.modelAutocomplete.modelSuggestions")}
id={listboxId}
ref={dropdownListRef}
role="listbox"
@@ -271,7 +271,7 @@ export const BedrockProvider = ({ showModelOptions, isPopup, currentMode }: Bedr
value={searchTerm}>
{searchTerm && searchTerm !== currentRegion && (
<div
aria-label="Clear search"
aria-label={t("clearSearch")}
className="input-icon-button codicon codicon-close"
onClick={() => {
setSearchTerm("")
@@ -39,7 +39,7 @@ export const DifyProvider = ({ showModelOptions, isPopup, currentMode }: DifyPro
onChange={(value) => {
handleFieldChange("difyBaseUrl", value)
}}
placeholder={"Enter base URL..."}
placeholder={t("providers.dify.baseUrlPlaceholder")}
style={{ width: "100%", marginBottom: 10 }}
type="text">
<span style={{ fontWeight: 500 }}>{t("providers.dify.baseUrl")}</span>
@@ -140,7 +140,7 @@ export const LMStudioProvider = ({ currentMode }: LMStudioProviderProps) => {
currentMode,
)
}
placeholder={"e.g. meta-llama-3.1-8b-instruct"}
placeholder={t("providers.lmStudio.modelExample")}
style={{ width: "100%" }}
/>
)}
@@ -75,7 +75,7 @@ export const LiteLlmProvider = ({ showModelOptions, isPopup, currentMode }: Lite
}),
)
}}
placeholder={"Default: http://localhost:4000"}
placeholder={t("providers.liteLlm.defaultBaseUrl")}
style={{ width: "100%" }}
type="text">
<div className="flex items-center gap-2 mb-1">
@@ -85,7 +85,7 @@ export const OllamaProvider = ({ showModelOptions, currentMode }: OllamaProvider
onModelChange={(modelId) => {
handleModeFieldChange({ plan: "planModeOllamaModelId", act: "actModeOllamaModelId" }, modelId, currentMode)
}}
placeholder={ollamaModels.length > 0 ? t("settings.searchSelectModel") : "e.g. llama3.1"}
placeholder={ollamaModels.length > 0 ? t("settings.searchSelectModel") : t("providers.ollama.modelExample")}
selectedModelId={ollamaModelId || ""}
/>
@@ -97,7 +97,7 @@ export const OllamaProvider = ({ showModelOptions, currentMode }: OllamaProvider
<DebouncedTextField
initialValue={apiConfiguration?.ollamaApiOptionsCtxNum || "32768"}
onChange={(v) => handleFieldChange("ollamaApiOptionsCtxNum", v || undefined)}
placeholder={"e.g. 32768"}
placeholder={t("providers.ollama.contextLengthExample")}
style={{ width: "100%" }}>
<span className="font-semibold">{t("providers.ollama.modelContextWindow")}</span>
</DebouncedTextField>
@@ -37,7 +37,7 @@ export const TogetherProvider = ({ showModelOptions, isPopup, currentMode }: Tog
onChange={(value) =>
handleModeFieldChange({ plan: "planModeTogetherModelId", act: "actModeTogetherModelId" }, value, currentMode)
}
placeholder={"Enter Model ID..."}
placeholder={t("providers.together.modelIdPlaceholder")}
style={{ width: "100%" }}>
<span style={{ fontWeight: 500 }}>{t("providers.openaiCompatible.modelId")}</span>
</DebouncedTextField>
@@ -84,9 +84,9 @@ export const VSCodeLmProvider = ({ currentMode }: VSCodeLmProviderProps) => {
marginTop: "5px",
color: "var(--vscode-descriptionForeground)",
}}>
Use models from your GitHub Copilot subscription. Install the{" "}
<a href="https://marketplace.visualstudio.com/items?itemName=GitHub.copilot">Copilot extension</a> and
enable Claude models in Copilot settings to get started.
{t("providers.vscodeLm.description")}{" "}
<a href="https://marketplace.visualstudio.com/items?itemName=GitHub.copilot">{t("providers.vscodeLm.copilotExtension")}</a>{" "}
{t("providers.vscodeLm.enableClaudeModels")}
</p>
)}
</DropdownContainer>
@@ -83,8 +83,7 @@ const ApiConfigurationSection = ({ renderSectionHeader, initialModelTab }: ApiCo
{t("settings.useDifferentModels")}
</VSCodeCheckbox>
<p className="text-xs mt-[5px] text-(--vscode-descriptionForeground)">
Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be
helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on.
{t("settings.useDifferentModelsDescription")}
</p>
</div>
</Section>
@@ -1,3 +1,4 @@
import i18next from "i18next"
import {
ApiConfiguration,
ApiProvider,
@@ -391,7 +392,7 @@ export function normalizeApiConfiguration(
selectedModelInfo: basetenModelInfo ||
basetenModels[finalBasetenModelId as keyof typeof basetenModels] ||
basetenModels[basetenDefaultModelId] || {
description: "Baseten model",
description: i18next.t("common:providers.baseten.modelDescription"),
},
}
}
@@ -422,7 +423,7 @@ export function normalizeApiConfiguration(
supportsPromptCache: false,
inputPrice: 0,
outputPrice: 0,
description: "Dify workflow - model selection is configured in your Dify application",
description: i18next.t("common:providers.dify.workflowDescription"),
},
}
case "vercel-ai-gateway":
@@ -3,10 +3,11 @@ import React from "react"
import { useTranslation } from "react-i18next"
import { TaskServiceClient } from "@/services/grpc-client"
import QuickWinCard from "./QuickWinCard"
import { QuickWinTask, quickWinTasks } from "./quickWinTasks"
import { useQuickWinTasks } from "./quickWinTasks"
export const SuggestedTasks: React.FC<{ shouldShowQuickWins: boolean }> = ({ shouldShowQuickWins }) => {
const { t } = useTranslation("common")
const quickWinTasks = useQuickWinTasks()
const handleExecuteQuickWin = async (prompt: string) => {
await TaskServiceClient.newTask(NewTaskRequest.create({ text: prompt, images: [] }))
}
@@ -22,7 +23,7 @@ export const SuggestedTasks: React.FC<{ shouldShowQuickWins: boolean }> = ({ sho
</h2>
<div className="flex flex-col space-y-1">
{" "}
{quickWinTasks.map((task: QuickWinTask) => (
{quickWinTasks.map((task) => (
<QuickWinCard key={task.id} onExecute={() => handleExecuteQuickWin(task.prompt)} task={task} />
))}
</div>
@@ -90,7 +90,7 @@ const CreateWorktreeModal = ({ open, onClose, openAfterCreate = false, onSuccess
onClose()
}
} catch (err) {
setCreateError(err instanceof Error ? err.message : "Failed to create worktree")
setCreateError(err instanceof Error ? err.message : t("worktrees.errors.failedToCreate"))
} finally {
setIsCreating(false)
}
@@ -75,7 +75,7 @@ const WorktreesView = ({ onDone }: WorktreesViewProps) => {
setGitRootPath((prev) => (prev === response.gitRootPath ? prev : response.gitRootPath))
setError((prev) => (response.error ? response.error : prev === null ? null : prev))
} catch (err) {
setError(err instanceof Error ? err.message : "Failed to load worktrees")
setError(err instanceof Error ? err.message : t("worktrees.errors.failedToLoad"))
} finally {
setIsLoading(false)
}
@@ -146,7 +146,7 @@ const WorktreesView = ({ onDone }: WorktreesViewProps) => {
await loadWorktrees()
}
} catch (err) {
setError(err instanceof Error ? err.message : "Failed to delete worktree")
setError(err instanceof Error ? err.message : t("worktrees.errors.failedToDelete"))
}
},
[loadWorktrees],
@@ -212,7 +212,7 @@ const WorktreesView = ({ onDone }: WorktreesViewProps) => {
setMergeError(result.message)
}
} catch (err) {
setMergeError(err instanceof Error ? err.message : "Failed to merge worktree")
setMergeError(err instanceof Error ? err.message : t("worktrees.errors.failedToMerge"))
} finally {
setIsMerging(false)
}
@@ -234,7 +234,7 @@ Please help me resolve these merge conflicts, then complete the merge, and delet
// Close worktrees view to show the chat with the new task
onDone()
} catch (err) {
setMergeError(err instanceof Error ? err.message : "Failed to create task for Cline")
setMergeError(err instanceof Error ? err.message : t("worktrees.errors.failedToCreateTask"))
}
}, [mergeResult, mergeWorktree, closeMergeModal, onDone])
+38 -4
View File
@@ -124,7 +124,9 @@
"failedToAdd": "Failed to add server",
"connecting": "Connecting...",
"addServer": "Add Server",
"editConfiguration": "Edit Configuration"
"editConfiguration": "Edit Configuration",
"serverNamePlaceholder": "mcp-server",
"serverUrlPlaceholder": "https://example.com/mcp-server"
},
"configureView": {
"protocolIntro": "The ",
@@ -206,7 +208,9 @@
"networkError": "Network error loading preview",
"noTitle": "No title",
"noDescription": "No description available",
"somethingWrongLink": "Something went wrong displaying this link preview"
"somethingWrongLink": "Something went wrong displaying this link preview",
"failedToFetchOpenGraph": "Failed to fetch Open Graph data",
"unknownError": "Unknown error occurred"
},
"timeout": {
"30seconds": "30 seconds",
@@ -255,6 +259,13 @@
"requireGit": "Worktrees require a git repository. Please initialize git to use worktrees.",
"retry": "Retry",
"noWorktrees": "No worktrees found.",
"errors": {
"failedToLoad": "Failed to load worktrees",
"failedToDelete": "Failed to delete worktree",
"failedToMerge": "Failed to merge worktree",
"failedToCreateTask": "Failed to create task for Cline",
"failedToCreate": "Failed to create worktree"
},
"primary": "Primary",
"primaryTooltip": "The original worktree where your .git directory lives.",
"current": "Current",
@@ -373,7 +384,8 @@
"createFile": "Create file",
"newFile": "New file",
"skillNameInvalid": "Skill name can only contain letters, numbers, dashes, and underscores",
"extensionInvalid": "Only .md, .txt, or no file extension allowed"
"extensionInvalid": "Only .md, .txt, or no file extension allowed",
"failedToCreateSkill": "Failed to create skill"
},
"ruleRow": {
"agentsTooltip": "Searches recursively for all AGENTS.md files in the workspace when a top-level AGENTS.md exists",
@@ -387,7 +399,29 @@
"demo": {
"helloWorld": "Hello World!",
"howdy": "Howdy!",
"cellData": "Cell Data"
"cellData": "Cell Data",
"customHeaderTitle": "A Custom Header Title",
"anotherCustomTitle": "Another Custom Title",
"titleIsCustom": "Title Is Custom",
"customTitle": "Custom Title",
"matchCase": "Match Case",
"matchWholeWord": "Match Whole Word",
"useRegularExpression": "Use Regular Expression",
"add": "Add",
"remove": "Remove",
"badge": "Badge",
"checkbox": "Checkbox",
"option1": "Option 1",
"option2": "Option 2",
"link": "Link",
"tab1": "Tab 1",
"tab2": "Tab 2",
"panelView1": "Panel View 1",
"panelView2": "Panel View 2",
"radio1": "Radio 1",
"radio2": "Radio 2",
"tag": "Tag",
"textAreaPlaceholder": "Text Area"
},
"history": {
"newest": "Newest",
+8
View File
@@ -431,5 +431,13 @@
},
"historyPreview": {
"noRecentTasks": "No recent tasks"
},
"providers": {
"baseten": {
"modelDescription": "Baseten model"
},
"dify": {
"workflowDescription": "Dify workflow - model selection is configured in your Dify application"
}
}
}
+25 -7
View File
@@ -68,7 +68,8 @@
"actMode": "Act Mode",
"useDifferentModels": "Use different models for Plan and Act modes",
"useDifferentModelsDescription": "Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on.",
"modeSwitchPersistDescription": "Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on."
"modeSwitchPersistDescription": "Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on.",
"thinkingBudgetLabel": "Thinking budget: {{value}} tokens"
},
"settingsSections": {
"allowErrorReporting": "Allow error and usage reporting",
@@ -359,7 +360,9 @@
"quickstartGuide": "quickstart guide.",
"ollamaInstructions": "Ollama allows you to run models locally on your computer. For instructions on how to get started, see their",
"noteComplexPrompts": "Note: Cline uses complex prompts and works best with Claude models. Less capable models may not work as expected.",
"seeQuickstart": "Ollama allows you to run models locally on your computer. For instructions on how to get started, see their quickstart guide."
"seeQuickstart": "Ollama allows you to run models locally on your computer. For instructions on how to get started, see their quickstart guide.",
"modelExample": "e.g. llama3.1",
"contextLengthExample": "e.g. 32768"
},
"lmstudio": {
"useCustomBaseUrl": "Use custom base URL",
@@ -371,7 +374,8 @@
"together": {
"name": "Together",
"modelId": "Model ID",
"noteComplexPrompts": "Note: Cline uses complex prompts and works best with Claude models. Less capable models may not work as expected."
"noteComplexPrompts": "Note: Cline uses complex prompts and works best with Claude models. Less capable models may not work as expected.",
"modelIdPlaceholder": "Enter Model ID..."
},
"xai": {
"name": "X AI",
@@ -459,7 +463,8 @@
"name": "Dify",
"baseUrl": "Base URL",
"noteModelSelection": "Note: The model selection is handled within your Dify application configuration.",
"platformDescription": "Dify is a platform that provides access to various AI models through a unified API. Configure your Dify instance URL and API key to get started."
"platformDescription": "Dify is a platform that provides access to various AI models through a unified API. Configure your Dify instance URL and API key to get started.",
"baseUrlPlaceholder": "Enter base URL..."
},
"hicap": {
"apiKey": "Hicap API Key"
@@ -516,7 +521,10 @@
"selectModelFromDropdown": "Select a model from the dropdown above. The extension fetches available models from your Vercel AI Gateway configuration."
},
"vscodeLm": {
"languageModel": "Language Model"
"languageModel": "Language Model",
"description": "Use models from your GitHub Copilot subscription. Install the",
"copilotExtension": "Copilot extension",
"enableClaudeModels": "and enable Claude models in Copilot settings to get started."
},
"openAiCodex": {
"signedIn": "Signed in to OpenAI Codex",
@@ -548,7 +556,11 @@
"entrypointDescription": "Please select the appropriate API entrypoint based on your location. If you are in China, choose open.bigmodel.cn. Otherwise, choose api.z.ai."
},
"lmStudio": {
"name": "LM Studio"
"name": "LM Studio",
"modelExample": "e.g. meta-llama-3.1-8b-instruct"
},
"liteLlm": {
"defaultBaseUrl": "Default: http://localhost:4000"
}
},
"modelPicker": {
@@ -559,6 +571,12 @@
"otherOptions": "other options",
"noResultFound": "No result found for \"{{term}}\""
},
"modelAutocomplete": {
"modelLabel": "Model",
"searchPlaceholder": "Search and select a model...",
"clearSearch": "Clear search",
"modelSuggestions": "Model suggestions"
},
"account": {
"title": "Account",
"personal": "Personal",
@@ -649,4 +667,4 @@
"deleteSelectedCount": "Delete {{count}} Selected",
"deleteAllHistory": "Delete All History"
}
}
}
+38 -4
View File
@@ -124,7 +124,9 @@
"failedToAdd": "添加服务器失败",
"connecting": "正在连接...",
"addServer": "添加服务器",
"editConfiguration": "编辑配置"
"editConfiguration": "编辑配置",
"serverNamePlaceholder": "mcp-server",
"serverUrlPlaceholder": "https://example.com/mcp-server"
},
"configureView": {
"protocolIntro": "",
@@ -206,7 +208,9 @@
"networkError": "加载预览时出现网络错误",
"noTitle": "无标题",
"noDescription": "无可用描述",
"somethingWrongLink": "显示此链接预览时出了点问题"
"somethingWrongLink": "显示此链接预览时出了点问题",
"failedToFetchOpenGraph": "获取 Open Graph 数据失败",
"unknownError": "发生未知错误"
},
"timeout": {
"30seconds": "30 秒",
@@ -255,6 +259,13 @@
"requireGit": "工作树需要 Git 仓库。请初始化 Git 以使用工作树。",
"retry": "重试",
"noWorktrees": "未找到工作树。",
"errors": {
"failedToLoad": "加载工作树失败",
"failedToDelete": "删除工作树失败",
"failedToMerge": "合并工作树失败",
"failedToCreateTask": "为 Cline 创建任务失败",
"failedToCreate": "创建工作树失败"
},
"primary": "主要",
"primaryTooltip": "原始工作树,.git 目录所在位置。",
"current": "当前",
@@ -373,7 +384,8 @@
"createFile": "创建文件",
"newFile": "新文件",
"skillNameInvalid": "技能名称只能包含字母、数字、短横线和下划线",
"extensionInvalid": "仅允许 .md、.txt 或无文件扩展名"
"extensionInvalid": "仅允许 .md、.txt 或无文件扩展名",
"failedToCreateSkill": "创建技能失败"
},
"ruleRow": {
"agentsTooltip": "当存在顶层 AGENTS.md 文件时,递归搜索工作区中所有 AGENTS.md 文件",
@@ -387,7 +399,29 @@
"demo": {
"helloWorld": "你好,世界!",
"howdy": "你好!",
"cellData": "单元格数据"
"cellData": "单元格数据",
"customHeaderTitle": "自定义标题",
"anotherCustomTitle": "另一个自定义标题",
"titleIsCustom": "标题是自定义的",
"customTitle": "自定义标题",
"matchCase": "区分大小写",
"matchWholeWord": "全字匹配",
"useRegularExpression": "使用正则表达式",
"add": "添加",
"remove": "移除",
"badge": "徽章",
"checkbox": "复选框",
"option1": "选项 1",
"option2": "选项 2",
"link": "链接",
"tab1": "标签 1",
"tab2": "标签 2",
"panelView1": "面板视图 1",
"panelView2": "面板视图 2",
"radio1": "单选 1",
"radio2": "单选 2",
"tag": "标签",
"textAreaPlaceholder": "文本区域"
},
"history": {
"newest": "最新",
+8
View File
@@ -431,5 +431,13 @@
},
"historyPreview": {
"noRecentTasks": "暂无最近任务"
},
"providers": {
"baseten": {
"modelDescription": "Baseten 模型"
},
"dify": {
"workflowDescription": "Dify 工作流 - 模型选择已在您的 Dify 应用中配置"
}
}
}
+25 -7
View File
@@ -68,7 +68,8 @@
"actMode": "执行模式",
"useDifferentModels": "为计划和执行模式使用不同的模型",
"useDifferentModelsDescription": "在计划和执行模式之间切换时,将保留之前模式使用的 API 和模型。这在使用强推理模型为更便宜的编码模型制定计划时可能会有帮助。",
"modeSwitchPersistDescription": "在计划和执行模式之间切换时,将保留上一模式使用的 API 和模型。例如,这在使用强推理模型为更便宜的编码模型制定计划时很有帮助。"
"modeSwitchPersistDescription": "在计划和执行模式之间切换时,将保留上一模式使用的 API 和模型。例如,这在使用强推理模型为更便宜的编码模型制定计划时很有帮助。",
"thinkingBudgetLabel": "思考预算:{{value}} 个 token"
},
"settingsSections": {
"allowErrorReporting": "允许错误和使用数据报告",
@@ -359,7 +360,9 @@
"quickstartGuide": "快速入门指南。",
"ollamaInstructions": "Ollama 允许您在本地计算机上运行模型。有关如何入门的说明,请参阅其",
"noteComplexPrompts": "注意:Cline 使用复杂的提示词,与 Claude 模型配合效果最佳。能力较弱的模型可能无法按预期工作。",
"seeQuickstart": "Ollama 允许您在本地计算机上运行模型。有关如何开始使用的说明,请参见他们的快速入门指南。"
"seeQuickstart": "Ollama 允许您在本地计算机上运行模型。有关如何开始使用的说明,请参见他们的快速入门指南。",
"modelExample": "例如 llama3.1",
"contextLengthExample": "例如 32768"
},
"lmstudio": {
"useCustomBaseUrl": "使用自定义基础 URL",
@@ -371,7 +374,8 @@
"together": {
"name": "Together",
"modelId": "模型 ID",
"noteComplexPrompts": "注意:Cline 使用复杂的提示词,与 Claude 模型配合效果最佳。能力较弱的模型可能无法按预期工作。"
"noteComplexPrompts": "注意:Cline 使用复杂的提示词,与 Claude 模型配合效果最佳。能力较弱的模型可能无法按预期工作。",
"modelIdPlaceholder": "输入模型 ID..."
},
"xai": {
"name": "X AI",
@@ -459,7 +463,8 @@
"name": "Dify",
"baseUrl": "基础 URL",
"noteModelSelection": "注意:模型选择在您的 Dify 应用配置中处理。",
"platformDescription": "Dify 是一个平台,通过统一的 API 提供对各种 AI 模型的访问。配置您的 Dify 实例 URL 和 API 密钥以开始使用。"
"platformDescription": "Dify 是一个平台,通过统一的 API 提供对各种 AI 模型的访问。配置您的 Dify 实例 URL 和 API 密钥以开始使用。",
"baseUrlPlaceholder": "输入基础 URL..."
},
"hicap": {
"apiKey": "Hicap API 密钥"
@@ -516,7 +521,10 @@
"selectModelFromDropdown": "从上面的下拉列表中选择一个模型。扩展从您的 Vercel AI Gateway 配置中获取可用模型。"
},
"vscodeLm": {
"languageModel": "语言模型"
"languageModel": "语言模型",
"description": "使用你的 GitHub Copilot 订阅中的模型。安装",
"copilotExtension": "Copilot 扩展",
"enableClaudeModels": "并在 Copilot 设置中启用 Claude 模型即可开始使用。"
},
"openAiCodex": {
"signedIn": "已登录 OpenAI Codex",
@@ -548,7 +556,11 @@
"entrypointDescription": "请根据您所在地区选择合适的 API 入口。如果您在中国大陆,请选择 open.bigmodel.cn。否则,请选择 api.z.ai。"
},
"lmStudio": {
"name": "LM Studio"
"name": "LM Studio",
"modelExample": "例如 meta-llama-3.1-8b-instruct"
},
"liteLlm": {
"defaultBaseUrl": "默认:http://localhost:4000"
}
},
"modelPicker": {
@@ -559,6 +571,12 @@
"otherOptions": "其他选项",
"noResultFound": "未找到 \"{{term}}\" 的结果"
},
"modelAutocomplete": {
"modelLabel": "模型",
"searchPlaceholder": "搜索并选择模型...",
"clearSearch": "清除搜索",
"modelSuggestions": "模型建议"
},
"account": {
"title": "账户",
"personal": "个人",
@@ -649,4 +667,4 @@
"deleteSelectedCount": "删除 {{count}} 已选中",
"deleteAllHistory": "删除所有历史记录"
}
}
}