@mofeng2223/dsh-claude-provider 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +1164 -184
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -55,7 +55,7 @@ window.__ModuleLoader__.load({
|
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-settings-models/src/client/ModelsSection.module.css.mjs
|
|
58
|
-
const css$3 = ".zGbnIq_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.zGbnIq_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.zGbnIq_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:14px;line-height:22px}.zGbnIq_notice{color:var(--dsw-alias-state-warn-label);margin:0;font-size:12px;line-height:18px}.zGbnIq_savedNotice{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_rows{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.zGbnIq_rowCard{border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-alias-settings-card-fill);border-radius:var(--dsw-radius-xl);flex-direction:column;gap:12px;padding:12px 14px;display:flex}.zGbnIq_rowHead{align-items:center;gap:10px;display:flex}.zGbnIq_rowIdentity{align-items:center;gap:6px;min-width:0;display:inline-flex}.zGbnIq_rowName{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_rowTag{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-xs);color:var(--dsw-alias-label-secondary);flex:none;padding:1px 6px;font-size:11px;line-height:16px}.zGbnIq_credentialDot{box-sizing:border-box;corner-shape:round;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.zGbnIq_credentialDotConfigured{background:var(--dsw-alias-state-success-primary)}.zGbnIq_credentialDotMissing{background:var(--dsw-alias-state-error-primary)}.zGbnIq_accountStatus{color:var(--dsw-alias-state-success-primary);flex:none;align-items:center;gap:6px;font-size:13px;line-height:20px;display:inline-flex}.zGbnIq_rowActions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.zGbnIq_primaryButton,.zGbnIq_secondaryButton,.zGbnIq_addButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;font:inherit;cursor:pointer;border:none;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.zGbnIq_primaryButton{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}.zGbnIq_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.zGbnIq_secondaryButton,.zGbnIq_addButton{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary);background:0 0}.zGbnIq_secondaryButton:hover:not(:disabled),.zGbnIq_addButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.zGbnIq_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}.zGbnIq_dangerButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;color:var(--dsw-alias-state-error-primary);font:inherit;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.zGbnIq_dangerButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.zGbnIq_rowActions .zGbnIq_secondaryButton,.zGbnIq_rowActions .zGbnIq_dangerButton{border-radius:var(--dsw-radius-sm);height:28px;padding:0 10px;font-size:12px;line-height:18px}.zGbnIq_primaryButton:disabled,.zGbnIq_secondaryButton:disabled,.zGbnIq_dangerButton:disabled,.zGbnIq_addButton:disabled,.zGbnIq_linkButton:disabled,.zGbnIq_addModelButton:disabled{opacity:.4;cursor:default}.zGbnIq_primaryButton:focus-visible,.zGbnIq_secondaryButton:focus-visible,.zGbnIq_dangerButton:focus-visible,.zGbnIq_addButton:focus-visible,.zGbnIq_linkButton:focus-visible,.zGbnIq_addModelButton:focus-visible,.zGbnIq_iconButton:focus-visible,.zGbnIq_customizedSummary:focus-visible{box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}.zGbnIq_editor{border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;display:flex}.zGbnIq_editorHeader{align-items:baseline;gap:8px;display:flex}.zGbnIq_editorTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_editorRoute{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_field{flex-direction:column;gap:6px;display:flex}.zGbnIq_fieldLabel{color:var(--dsw-alias-label-secondary);align-items:center;gap:10px;font-size:12px;font-weight:500;line-height:18px;display:inline-flex}.zGbnIq_helpButton{border:.5px solid var(--dsw-alias-border-l3);corner-shape:round;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:center;cursor:help;background:0 0;border-radius:50%;padding:0;font-size:11px;line-height:15px}.zGbnIq_helpButton:hover,.zGbnIq_helpButton:focus-visible{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-tertiary)}.zGbnIq_linkButton{box-sizing:border-box;border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}.zGbnIq_linkButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.zGbnIq_advancedHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.zGbnIq_editorActions{justify-content:flex-end;gap:8px;display:flex}.zGbnIq_addBlock{flex-direction:column;gap:12px;display:flex}.zGbnIq_addActions{display:flex}.zGbnIq_addButton{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex:1 1 0;gap:6px;min-width:180px;height:44px}.zGbnIq_addModes{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.zGbnIq_addPanel{flex-direction:column;gap:14px;display:flex}.zGbnIq_addPanel[hidden]{display:none}.zGbnIq_addCard,.zGbnIq_setupCard{border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;list-style:none;display:flex}.zGbnIq_addCard .zGbnIq_editor,.zGbnIq_setupCard .zGbnIq_editor{background:0 0;padding:0}.zGbnIq_customized{border-top:.5px solid var(--dsw-alias-border-l2);padding-top:10px}.zGbnIq_customizedSummary{border-radius:var(--dsw-radius-sm);cursor:pointer;width:fit-content;color:var(--dsw-alias-label-secondary);align-items:center;gap:6px;margin-left:-4px;padding:2px 4px;font-size:12px;font-weight:500;line-height:18px;list-style:none;display:flex}.zGbnIq_customizedSummary::-webkit-details-marker{display:none}.zGbnIq_customizedSummary:before{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;transition:transform .12s;transform:rotate(-45deg)translate(-1px,-1px)}.zGbnIq_customized[open]>.zGbnIq_customizedSummary:before{transform:rotate(45deg)translate(-1px,-1px)}.zGbnIq_customizedSummary:hover{color:var(--dsw-alias-label-primary)}.zGbnIq_customizedBody{flex-direction:column;gap:12px;padding-top:12px;display:flex}.zGbnIq_modelCatalog{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:10px;padding-top:12px;display:flex}.zGbnIq_modelCatalogHeading{flex-direction:column;gap:2px;display:flex}.zGbnIq_modelCatalogTitle{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.zGbnIq_modelCatalogMeta,.zGbnIq_modelEmpty{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.zGbnIq_modelList{flex-direction:column;gap:8px;display:flex}.zGbnIq_modelListHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.zGbnIq_modelEntry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);padding:6px}.zGbnIq_modelRow{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto;align-items:center;gap:6px;display:grid}.zGbnIq_iconButton{box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}.zGbnIq_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.zGbnIq_iconButton:disabled{cursor:default;opacity:.4}.zGbnIq_iconButtonDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.zGbnIq_modelAdvanced{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 4px 2px;display:grid}.zGbnIq_modelField{flex-direction:column;gap:4px;min-width:0;display:flex}.zGbnIq_modelInputTypes{border:none;grid-column:1/-1;min-width:0;margin:0;padding:0}.zGbnIq_modelInputTypes legend{margin-bottom:4px;padding:0}.zGbnIq_modelInputChoices{flex-wrap:wrap;align-items:center;gap:16px;min-height:32px;display:flex}.zGbnIq_modelFieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_modelReasoning{flex-direction:column;grid-column:1/-1;gap:6px;min-width:0;display:flex}.zGbnIq_modelReasoningLabel{align-items:center;gap:6px;display:inline-flex}.zGbnIq_modelReasoningHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.zGbnIq_modelReasoningRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:6px;display:grid}.zGbnIq_modelReasoningRow .zGbnIq_selectInput{max-width:none}.zGbnIq_modelReasoningValueInput{font-family:var(--ds-font-family-code);font-size:13px}.zGbnIq_modelEmpty{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);text-align:center;padding:12px}.zGbnIq_addModelButton{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;align-self:flex-start;align-items:center;gap:4px;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}.zGbnIq_addModelButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.zGbnIq_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);width:100%;height:32px;font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);padding:0 10px;font-size:14px;line-height:22px}select.zGbnIq_input{cursor:pointer;max-width:240px}.zGbnIq_input:focus{border-color:var(--dsw-alias-state-business-primary);outline:none}.zGbnIq_input::placeholder{color:var(--dsw-alias-label-dimmed)}.zGbnIq_input:disabled{opacity:.6;cursor:default}.zGbnIq_keyInput{position:relative}.zGbnIq_keyInputFilled{padding-right:40px}.zGbnIq_keyToggle{border-radius:var(--dsw-radius-md);width:32px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;inset:1px 1px 1px auto}.zGbnIq_keyToggle:hover:not(:disabled){color:var(--dsw-alias-label-primary)}.zGbnIq_keyToggle:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.zGbnIq_keyToggle:disabled{opacity:.6;cursor:default}.zGbnIq_selectInput{appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 12px center;background-repeat:no-repeat;background-size:12px 12px;padding-right:32px}.zGbnIq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_deleteDialog{width:min(480px,100%)}.zGbnIq_deleteConfirm:not(:disabled){border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.zGbnIq_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.zGbnIq_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.zGbnIq_customizedSummary:before,.zGbnIq_switchThumb{transition:none}}.zGbnIq_fetchDialog{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);max-width:520px}.zGbnIq_candidateToolbar{align-items:center;gap:8px;margin-bottom:6px;display:flex}.zGbnIq_candidateSearch{flex:240px;min-width:0}.zGbnIq_candidateList{flex-direction:column;gap:2px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.zGbnIq_candidate{border-radius:var(--dsw-radius-md)}.zGbnIq_candidateLabel{cursor:pointer;align-items:center;gap:8px;padding:6px 8px;display:flex}.zGbnIq_candidateId{min-width:0;font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;flex:auto;font-size:13px;overflow:hidden}.zGbnIq_candidateEmpty{color:var(--dsw-alias-label-secondary);text-align:center;margin:24px 0;font-size:13px;line-height:20px}";
|
|
58
|
+
const css$3 = ".zGbnIq_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.zGbnIq_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.zGbnIq_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:14px;line-height:22px}.zGbnIq_notice{color:var(--dsw-alias-state-warn-label);margin:0;font-size:12px;line-height:18px}.zGbnIq_savedNotice{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_rows{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.zGbnIq_rowCard{border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-alias-settings-card-fill);border-radius:var(--dsw-radius-xl);flex-direction:column;gap:12px;padding:12px 14px;display:flex}.zGbnIq_rowHead{align-items:center;gap:10px;display:flex}.zGbnIq_rowIdentity{align-items:center;gap:6px;min-width:0;display:inline-flex}.zGbnIq_rowName{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_rowTag{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-xs);color:var(--dsw-alias-label-secondary);flex:none;padding:1px 6px;font-size:11px;line-height:16px}.zGbnIq_credentialDot{box-sizing:border-box;corner-shape:round;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.zGbnIq_credentialDotConfigured{background:var(--dsw-alias-state-success-primary)}.zGbnIq_credentialDotMissing{background:var(--dsw-alias-state-error-primary)}.zGbnIq_accountStatus{color:var(--dsw-alias-state-success-primary);flex:none;align-items:center;gap:6px;font-size:13px;line-height:20px;display:inline-flex}.zGbnIq_rowActions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.zGbnIq_primaryButton,.zGbnIq_secondaryButton,.zGbnIq_addButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;font:inherit;cursor:pointer;border:none;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.zGbnIq_primaryButton{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}@media (hover:hover){.zGbnIq_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}}.zGbnIq_secondaryButton,.zGbnIq_addButton{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary);background:0 0}@media (hover:hover){.zGbnIq_secondaryButton:hover:not(:disabled),.zGbnIq_addButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.zGbnIq_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}}.zGbnIq_dangerButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;color:var(--dsw-alias-state-error-primary);font:inherit;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}@media (hover:hover){.zGbnIq_dangerButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}}.zGbnIq_rowActions .zGbnIq_secondaryButton,.zGbnIq_rowActions .zGbnIq_dangerButton{border-radius:var(--dsw-radius-sm);height:28px;padding:0 10px;font-size:12px;line-height:18px}.zGbnIq_primaryButton:disabled,.zGbnIq_secondaryButton:disabled,.zGbnIq_dangerButton:disabled,.zGbnIq_addButton:disabled,.zGbnIq_linkButton:disabled,.zGbnIq_addModelButton:disabled{opacity:.4;cursor:default}.zGbnIq_primaryButton:focus-visible,.zGbnIq_secondaryButton:focus-visible,.zGbnIq_dangerButton:focus-visible,.zGbnIq_addButton:focus-visible,.zGbnIq_linkButton:focus-visible,.zGbnIq_addModelButton:focus-visible,.zGbnIq_iconButton:focus-visible,.zGbnIq_customizedSummary:focus-visible{box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}.zGbnIq_editor{border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;display:flex}.zGbnIq_editorHeader{align-items:baseline;gap:8px;display:flex}.zGbnIq_editorTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_editorRoute{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_field{flex-direction:column;gap:6px;display:flex}.zGbnIq_fieldLabel{color:var(--dsw-alias-label-secondary);align-items:center;gap:10px;font-size:12px;font-weight:500;line-height:18px;display:inline-flex}.zGbnIq_helpButton{border:.5px solid var(--dsw-alias-border-l3);corner-shape:round;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:center;cursor:help;background:0 0;border-radius:50%;padding:0;font-size:11px;line-height:15px}.zGbnIq_helpButton:focus-visible{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-tertiary)}@media (hover:hover){.zGbnIq_helpButton:hover{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-tertiary)}}.zGbnIq_linkButton{box-sizing:border-box;border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}@media (hover:hover){.zGbnIq_linkButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}}.zGbnIq_advancedHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.zGbnIq_editorActions{justify-content:flex-end;gap:8px;display:flex}.zGbnIq_addBlock{flex-direction:column;gap:12px;display:flex}.zGbnIq_addActions{display:flex}.zGbnIq_addButton{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex:1 1 0;gap:6px;min-width:180px;height:44px}.zGbnIq_addModes{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.zGbnIq_addPanel{flex-direction:column;gap:14px;display:flex}.zGbnIq_addPanel[hidden]{display:none}.zGbnIq_addCard,.zGbnIq_setupCard{border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;list-style:none;display:flex}.zGbnIq_addCard .zGbnIq_editor,.zGbnIq_setupCard .zGbnIq_editor{background:0 0;padding:0}.zGbnIq_customized{border-top:.5px solid var(--dsw-alias-border-l2);padding-top:10px}.zGbnIq_customizedSummary{border-radius:var(--dsw-radius-sm);cursor:pointer;width:fit-content;color:var(--dsw-alias-label-secondary);align-items:center;gap:6px;margin-left:-4px;padding:2px 4px;font-size:12px;font-weight:500;line-height:18px;list-style:none;display:flex}.zGbnIq_customizedSummary::-webkit-details-marker{display:none}.zGbnIq_customizedSummary:before{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;transition:transform .12s;transform:rotate(-45deg)translate(-1px,-1px)}.zGbnIq_customized[open]>.zGbnIq_customizedSummary:before{transform:rotate(45deg)translate(-1px,-1px)}@media (hover:hover){.zGbnIq_customizedSummary:hover{color:var(--dsw-alias-label-primary)}}.zGbnIq_customizedBody{flex-direction:column;gap:12px;padding-top:12px;display:flex}.zGbnIq_modelCatalog{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:10px;padding-top:12px;display:flex;position:relative}.zGbnIq_modelCatalogHeading{flex-direction:column;gap:2px;display:flex}.zGbnIq_modelCatalogTitle{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.zGbnIq_modelCatalogMeta,.zGbnIq_modelEmpty{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.zGbnIq_modelList{flex-direction:column;gap:8px;display:flex}.zGbnIq_modelListHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.zGbnIq_modelEntry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);padding:6px;position:relative;container:zGbnIq_model-row/inline-size}.zGbnIq_modelRow{grid-template-columns:auto minmax(0,1.4fr) minmax(0,1fr) auto auto;align-items:center;gap:6px;display:grid}.zGbnIq_modelName{grid-area:1/3}.zGbnIq_modelNameLabel{display:none}@container zGbnIq_model-row (width<=440px){.zGbnIq_modelRow{grid-template-columns:auto minmax(0,1fr) auto auto}.zGbnIq_modelRow .zGbnIq_modelName{grid-area:2/1/auto/-1;padding:2px 4px 0;display:none}.zGbnIq_modelRow[data-expanded] .zGbnIq_modelName{display:flex}.zGbnIq_modelNameLabel{display:block}}.zGbnIq_modelDragHandle:not(:disabled){cursor:grab}.zGbnIq_modelEntry[data-dragging]{opacity:.5}.zGbnIq_modelEntry[data-drop-target]{z-index:1}.zGbnIq_modelDragPreview{background:var(--dsw-alias-bg-module-platform)}.zGbnIq_modelEntry:before,.zGbnIq_modelEntry:after{content:\"\";z-index:1;height:4px;position:absolute;left:0;right:0}.zGbnIq_modelEntry:before{top:-4px}.zGbnIq_modelEntry:after{bottom:-4px}.zGbnIq_modelEntry[data-drop-target=before]:before,.zGbnIq_modelEntry[data-drop-target=after]:after{background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;height:12px}.zGbnIq_modelEntry[data-drop-target=before]:before{top:-10px}.zGbnIq_modelEntry[data-drop-target=after]:after{bottom:-10px}.zGbnIq_iconButton{box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}@media (hover:hover){.zGbnIq_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.zGbnIq_iconButton:disabled{cursor:default;opacity:.4}@media (hover:hover){.zGbnIq_iconButtonDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}}.zGbnIq_modelAdvanced{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:2px 4px;display:grid}.zGbnIq_modelField{flex-direction:column;gap:4px;min-width:0;display:flex}.zGbnIq_modelInputTypes{border:none;grid-column:1/-1;min-width:0;margin:0;padding:0}.zGbnIq_modelInputTypes legend{margin-bottom:4px;padding:0}.zGbnIq_modelInputChoices{flex-wrap:wrap;align-items:center;gap:16px;min-height:32px;display:flex}.zGbnIq_modelFieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_modelReasoning{flex-direction:column;grid-column:1/-1;gap:6px;min-width:0;display:flex}.zGbnIq_modelReasoningLabel{align-items:center;gap:6px;display:inline-flex}.zGbnIq_modelReasoningHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.zGbnIq_modelReasoningRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:6px;display:grid}.zGbnIq_modelReasoningRow .zGbnIq_selectInput{max-width:none}.zGbnIq_modelReasoningValueInput{font-family:var(--ds-font-family-code);font-size:13px}.zGbnIq_modelEmpty{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);text-align:center;padding:12px}.zGbnIq_addModelButton{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;align-self:flex-start;align-items:center;gap:4px;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}@media (hover:hover){.zGbnIq_addModelButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.zGbnIq_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);width:100%;height:32px;font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);padding:0 10px;font-size:14px;line-height:22px}select.zGbnIq_input{cursor:pointer;max-width:240px}.zGbnIq_input:focus{border-color:var(--dsw-alias-state-business-primary);outline:none}.zGbnIq_input::placeholder{color:var(--dsw-alias-label-dimmed)}.zGbnIq_input:disabled{opacity:.6;cursor:default}.zGbnIq_keyInput{position:relative}.zGbnIq_keyInputFilled{padding-right:40px}.zGbnIq_keyToggle{border-radius:var(--dsw-radius-md);width:32px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;inset:1px 1px 1px auto}@media (hover:hover){.zGbnIq_keyToggle:hover:not(:disabled){color:var(--dsw-alias-label-primary)}}.zGbnIq_keyToggle:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.zGbnIq_keyToggle:disabled{opacity:.6;cursor:default}.zGbnIq_selectInput{appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 12px center;background-repeat:no-repeat;background-size:12px 12px;padding-right:32px}.zGbnIq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_deleteDialog{width:min(480px,100%)}.zGbnIq_deleteConfirm:not(:disabled){--dsh-button-outline-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}@media (hover:hover){.zGbnIq_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}}.zGbnIq_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.zGbnIq_customizedSummary:before,.zGbnIq_switchThumb{transition:none}}.zGbnIq_fetchDialog{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);max-width:520px}.zGbnIq_candidateToolbar{align-items:center;gap:8px;margin-bottom:6px;display:flex}.zGbnIq_candidateSearch{flex:240px;min-width:0}.zGbnIq_candidateList{flex-direction:column;gap:2px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.zGbnIq_candidate{border-radius:var(--dsw-radius-md)}.zGbnIq_candidateLabel{cursor:pointer;align-items:center;gap:8px;padding:6px 8px;display:flex}.zGbnIq_candidateId{min-width:0;font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;flex:auto;font-size:13px;overflow:hidden}.zGbnIq_candidateEmpty{color:var(--dsw-alias-label-secondary);text-align:center;margin:24px 0;font-size:13px;line-height:20px}";
|
|
59
59
|
const tagId$3 = "@mofeng2223/dsh-claude-provider/ModelsSection.module.css";
|
|
60
60
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
61
61
|
const tag = document.createElement("style");
|
|
@@ -109,11 +109,14 @@ window.__ModuleLoader__.load({
|
|
|
109
109
|
"keyInputFilled": "zGbnIq_keyInputFilled",
|
|
110
110
|
"keyToggle": "zGbnIq_keyToggle",
|
|
111
111
|
"linkButton": "zGbnIq_linkButton",
|
|
112
|
+
"model-row": "zGbnIq_model-row",
|
|
112
113
|
"modelAdvanced": "zGbnIq_modelAdvanced",
|
|
113
114
|
"modelCatalog": "zGbnIq_modelCatalog",
|
|
114
115
|
"modelCatalogHeading": "zGbnIq_modelCatalogHeading",
|
|
115
116
|
"modelCatalogMeta": "zGbnIq_modelCatalogMeta",
|
|
116
117
|
"modelCatalogTitle": "zGbnIq_modelCatalogTitle",
|
|
118
|
+
"modelDragHandle": "zGbnIq_modelDragHandle",
|
|
119
|
+
"modelDragPreview": "zGbnIq_modelDragPreview",
|
|
117
120
|
"modelEmpty": "zGbnIq_modelEmpty",
|
|
118
121
|
"modelEntry": "zGbnIq_modelEntry",
|
|
119
122
|
"modelField": "zGbnIq_modelField",
|
|
@@ -122,6 +125,8 @@ window.__ModuleLoader__.load({
|
|
|
122
125
|
"modelInputTypes": "zGbnIq_modelInputTypes",
|
|
123
126
|
"modelList": "zGbnIq_modelList",
|
|
124
127
|
"modelListHead": "zGbnIq_modelListHead",
|
|
128
|
+
"modelName": "zGbnIq_modelName",
|
|
129
|
+
"modelNameLabel": "zGbnIq_modelNameLabel",
|
|
125
130
|
"modelReasoning": "zGbnIq_modelReasoning",
|
|
126
131
|
"modelReasoningHead": "zGbnIq_modelReasoningHead",
|
|
127
132
|
"modelReasoningLabel": "zGbnIq_modelReasoningLabel",
|
|
@@ -478,38 +483,102 @@ window.__ModuleLoader__.load({
|
|
|
478
483
|
}
|
|
479
484
|
//#endregion
|
|
480
485
|
//#region lib/types/client/ModelRow.js
|
|
486
|
+
function rowHalf(event) {
|
|
487
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
488
|
+
return event.clientY < rect.top + rect.height / 2 ? "before" : "after";
|
|
489
|
+
}
|
|
481
490
|
/**
|
|
482
|
-
* Render
|
|
491
|
+
* Render model fields with the display name in the expanded area of narrow rows.
|
|
483
492
|
* @param props - drafted fields and their owning editor's actions.
|
|
484
493
|
* @returns one expandable model entry.
|
|
485
494
|
*/
|
|
486
495
|
function ModelRow(props) {
|
|
487
496
|
const { model, position, t, disabled } = props;
|
|
488
|
-
|
|
497
|
+
const preview = (0, _deepseek_ai_dsh_client_ui_primitives.useRowDragPreview)(ModelsSection_module_css_default["modelDragPreview"]);
|
|
498
|
+
const modelField = (field) => (0, react_jsx_runtime.jsxs)("label", {
|
|
499
|
+
className: `${ModelsSection_module_css_default["modelField"]} ${field === "name" ? ModelsSection_module_css_default["modelName"] : ""}`,
|
|
500
|
+
children: [field === "name" ? (0, react_jsx_runtime.jsx)("span", {
|
|
501
|
+
className: `${ModelsSection_module_css_default["modelFieldLabel"]} ${ModelsSection_module_css_default["modelNameLabel"]}`,
|
|
502
|
+
children: t("modelName")
|
|
503
|
+
}) : null, (0, react_jsx_runtime.jsx)("input", {
|
|
504
|
+
className: ModelsSection_module_css_default["input"],
|
|
505
|
+
type: "text",
|
|
506
|
+
value: typeof model[field] === "string" ? model[field] : "",
|
|
507
|
+
placeholder: t(field === "id" ? "modelId" : "modelName"),
|
|
508
|
+
"aria-label": `${t(field === "id" ? "modelId" : "modelName")} ${String(position)}`,
|
|
509
|
+
disabled,
|
|
510
|
+
onFocus: field === "name" && !props.expanded ? props.onToggle : void 0,
|
|
511
|
+
onChange: (event) => {
|
|
512
|
+
const value = event.target.value;
|
|
513
|
+
props.onFieldChange(field, field === "name" && value === "" ? void 0 : value);
|
|
514
|
+
},
|
|
515
|
+
onBlur: field === "id" ? (event) => props.onIdBlur?.(event.target.value) : void 0
|
|
516
|
+
})]
|
|
517
|
+
});
|
|
518
|
+
return (0, react_jsx_runtime.jsx)("div", {
|
|
489
519
|
className: ModelsSection_module_css_default["modelEntry"],
|
|
490
|
-
|
|
520
|
+
"data-row-key": props.rowKey,
|
|
521
|
+
"data-dragging": props.order.dragging || void 0,
|
|
522
|
+
"data-drop-target": props.order.dragging ? void 0 : props.order.target,
|
|
523
|
+
onDragOver: (event) => {
|
|
524
|
+
if (!props.order.canDrop) return;
|
|
525
|
+
event.preventDefault();
|
|
526
|
+
event.dataTransfer.dropEffect = "move";
|
|
527
|
+
props.order.onOver(rowHalf(event));
|
|
528
|
+
},
|
|
529
|
+
onDragLeave: (event) => {
|
|
530
|
+
if (event.relatedTarget instanceof Node && event.currentTarget.contains(event.relatedTarget)) return;
|
|
531
|
+
props.order.onLeave();
|
|
532
|
+
},
|
|
533
|
+
onDrop: (event) => {
|
|
534
|
+
if (!props.order.canDrop) return;
|
|
535
|
+
event.preventDefault();
|
|
536
|
+
props.order.onDrop(rowHalf(event));
|
|
537
|
+
},
|
|
538
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
491
539
|
className: ModelsSection_module_css_default["modelRow"],
|
|
540
|
+
"data-expanded": props.expanded || void 0,
|
|
492
541
|
children: [
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
542
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
543
|
+
label: t("reorderModelHelp"),
|
|
544
|
+
portal: true,
|
|
545
|
+
children: (0, react_jsx_runtime.jsx)("button", {
|
|
546
|
+
type: "button",
|
|
547
|
+
className: `${ModelsSection_module_css_default["iconButton"]} ${ModelsSection_module_css_default["modelDragHandle"]}`,
|
|
548
|
+
"aria-label": `${t("reorderModel")} ${String(position)}`,
|
|
549
|
+
"aria-keyshortcuts": "ArrowUp ArrowDown",
|
|
550
|
+
"aria-description": t("reorderModelHelp"),
|
|
551
|
+
disabled,
|
|
552
|
+
draggable: !disabled,
|
|
553
|
+
onDragStart: (event) => {
|
|
554
|
+
event.dataTransfer.effectAllowed = "move";
|
|
555
|
+
event.dataTransfer.setData("application/x-dsh-model-order", String(position));
|
|
556
|
+
props.order.onStart();
|
|
557
|
+
preview.start(event, event.currentTarget.closest("[data-row-key]"));
|
|
558
|
+
},
|
|
559
|
+
onDragEnd: () => {
|
|
560
|
+
if (preview.clear()) props.order.onEnd();
|
|
561
|
+
},
|
|
562
|
+
onKeyDown: (event) => {
|
|
563
|
+
if (event.key !== "ArrowUp" && event.key !== "ArrowDown") return;
|
|
564
|
+
event.preventDefault();
|
|
565
|
+
event.stopPropagation();
|
|
566
|
+
props.order.onMove(event.key === "ArrowUp" ? -1 : 1);
|
|
567
|
+
},
|
|
568
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconDragHandleOutlineRegular, { size: 14 })
|
|
569
|
+
})
|
|
570
|
+
}),
|
|
571
|
+
modelField("id"),
|
|
506
572
|
(0, react_jsx_runtime.jsx)("button", {
|
|
507
573
|
type: "button",
|
|
508
574
|
className: ModelsSection_module_css_default["iconButton"],
|
|
509
575
|
"aria-label": `${t("modelAdvanced")} ${String(position)}`,
|
|
510
576
|
"aria-expanded": props.expanded,
|
|
511
577
|
title: t("modelAdvanced"),
|
|
512
|
-
onClick:
|
|
578
|
+
onClick: (event) => {
|
|
579
|
+
event.currentTarget.focus();
|
|
580
|
+
props.onToggle();
|
|
581
|
+
},
|
|
513
582
|
children: props.expanded ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {})
|
|
514
583
|
}),
|
|
515
584
|
(0, react_jsx_runtime.jsx)("button", {
|
|
@@ -520,65 +589,158 @@ window.__ModuleLoader__.load({
|
|
|
520
589
|
disabled,
|
|
521
590
|
onClick: props.onRemove,
|
|
522
591
|
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular, { size: 14 })
|
|
523
|
-
})
|
|
524
|
-
]
|
|
525
|
-
}), props.expanded ? (0, react_jsx_runtime.jsxs)("div", {
|
|
526
|
-
className: ModelsSection_module_css_default["modelAdvanced"],
|
|
527
|
-
children: [
|
|
528
|
-
["contextWindow", "maxTokens"].map((field) => (0, react_jsx_runtime.jsxs)("label", {
|
|
529
|
-
className: ModelsSection_module_css_default["modelField"],
|
|
530
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
531
|
-
className: ModelsSection_module_css_default["modelFieldLabel"],
|
|
532
|
-
children: t(field)
|
|
533
|
-
}), (0, react_jsx_runtime.jsx)("input", {
|
|
534
|
-
className: ModelsSection_module_css_default["input"],
|
|
535
|
-
type: "text",
|
|
536
|
-
inputMode: "numeric",
|
|
537
|
-
value: props[field].value,
|
|
538
|
-
placeholder: props[field].placeholder,
|
|
539
|
-
"aria-label": `${t(field)} ${String(position)}`,
|
|
540
|
-
disabled,
|
|
541
|
-
onChange: (event) => {
|
|
542
|
-
props[field].onChange(event.target.value);
|
|
543
|
-
},
|
|
544
|
-
onBlur: props[field].onBlur
|
|
545
|
-
})]
|
|
546
|
-
}, field)),
|
|
547
|
-
(0, react_jsx_runtime.jsx)(ModelInputTypes, {
|
|
548
|
-
model,
|
|
549
|
-
field: props.inputField,
|
|
550
|
-
position,
|
|
551
|
-
fallback: props.inputFallback,
|
|
552
|
-
disabled: disabled || props.inputLoading === true,
|
|
553
|
-
t,
|
|
554
|
-
onChange: props.onChange
|
|
555
592
|
}),
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
593
|
+
modelField("name"),
|
|
594
|
+
props.expanded ? (0, react_jsx_runtime.jsxs)("div", {
|
|
595
|
+
className: ModelsSection_module_css_default["modelAdvanced"],
|
|
596
|
+
children: [
|
|
597
|
+
["contextWindow", "maxTokens"].map((field) => (0, react_jsx_runtime.jsxs)("label", {
|
|
598
|
+
className: ModelsSection_module_css_default["modelField"],
|
|
599
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
600
|
+
className: ModelsSection_module_css_default["modelFieldLabel"],
|
|
601
|
+
children: t(field)
|
|
602
|
+
}), (0, react_jsx_runtime.jsx)("input", {
|
|
603
|
+
className: ModelsSection_module_css_default["input"],
|
|
604
|
+
type: "text",
|
|
605
|
+
inputMode: "numeric",
|
|
606
|
+
value: props[field].value,
|
|
607
|
+
placeholder: props[field].placeholder,
|
|
608
|
+
"aria-label": `${t(field)} ${String(position)}`,
|
|
609
|
+
disabled,
|
|
610
|
+
onChange: (event) => {
|
|
611
|
+
props[field].onChange(event.target.value);
|
|
612
|
+
},
|
|
613
|
+
onBlur: props[field].onBlur
|
|
614
|
+
})]
|
|
615
|
+
}, field)),
|
|
616
|
+
(0, react_jsx_runtime.jsx)(ModelInputTypes, {
|
|
617
|
+
model,
|
|
618
|
+
field: props.inputField,
|
|
619
|
+
position,
|
|
620
|
+
fallback: props.inputFallback,
|
|
621
|
+
disabled: disabled || props.inputLoading === true,
|
|
622
|
+
t,
|
|
623
|
+
onChange: props.onChange
|
|
624
|
+
}),
|
|
625
|
+
props.reasoningLevels !== void 0 && props.reasoningLevels.length > 0 ? (0, react_jsx_runtime.jsx)(ModelReasoningEfforts, {
|
|
626
|
+
model,
|
|
627
|
+
levels: props.reasoningLevels,
|
|
559
628
|
claude: props.thinkingPresets === true,
|
|
560
629
|
adaptiveFallback: props.adaptiveFallback,
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
630
|
+
position,
|
|
631
|
+
disabled,
|
|
632
|
+
t,
|
|
633
|
+
onChange: props.onChange
|
|
634
|
+
}) : null
|
|
635
|
+
]
|
|
565
636
|
}) : null
|
|
566
637
|
]
|
|
567
|
-
})
|
|
638
|
+
})
|
|
568
639
|
});
|
|
569
640
|
}
|
|
570
641
|
//#endregion
|
|
571
|
-
//#region lib/types/client/
|
|
642
|
+
//#region lib/types/client/useModelRows.js
|
|
643
|
+
/** Local model-row identities, disclosures, capacity text, and draft ordering. */
|
|
644
|
+
/** One editor-local identity; editing a model ID never replaces its controls. */
|
|
645
|
+
function createRow(key) {
|
|
646
|
+
return {
|
|
647
|
+
key,
|
|
648
|
+
expanded: false,
|
|
649
|
+
editing: /* @__PURE__ */ new Map()
|
|
650
|
+
};
|
|
651
|
+
}
|
|
572
652
|
/**
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
*
|
|
653
|
+
* Keep row state with its model through draft moves and removals.
|
|
654
|
+
* @param models - current draft array, owned by the provider card.
|
|
655
|
+
* @param onChange - replaces only that card's draft array.
|
|
656
|
+
* @param disabled - prevents reordering while the card cannot be edited.
|
|
657
|
+
* @returns row state and local editing and ordering actions.
|
|
577
658
|
*/
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
659
|
+
function useModelRows(models, onChange, disabled) {
|
|
660
|
+
const nextKey = (0, react.useRef)(0);
|
|
661
|
+
const [stored, setRows] = (0, react.useState)(() => models.map(() => createRow(nextKey.current++)));
|
|
662
|
+
const [dragged, setDragged] = (0, react.useState)();
|
|
663
|
+
const [target, setTarget] = (0, react.useState)();
|
|
664
|
+
const entries = models.map((model, index) => ({
|
|
665
|
+
model,
|
|
666
|
+
state: stored[index] ?? createRow(nextKey.current++)
|
|
667
|
+
}));
|
|
668
|
+
const rows = entries.map((entry) => entry.state);
|
|
669
|
+
if (stored.length !== models.length) setRows(rows);
|
|
670
|
+
const endDrag = () => {
|
|
671
|
+
setDragged(void 0);
|
|
672
|
+
setTarget(void 0);
|
|
673
|
+
};
|
|
674
|
+
const move = (from, to) => {
|
|
675
|
+
if (disabled || from === to || from < 0 || to < 0 || to >= models.length) return;
|
|
676
|
+
const order = [...entries];
|
|
677
|
+
const moved = order.splice(from, 1);
|
|
678
|
+
order.splice(to, 0, ...moved);
|
|
679
|
+
setRows(order.map((entry) => entry.state));
|
|
680
|
+
onChange(order.map((entry) => entry.model));
|
|
681
|
+
};
|
|
682
|
+
return {
|
|
683
|
+
rows: entries.map(({ model, state }, index) => ({
|
|
684
|
+
...state,
|
|
685
|
+
model,
|
|
686
|
+
order: {
|
|
687
|
+
dragging: dragged === state.key,
|
|
688
|
+
target: target?.key === state.key ? target.half : void 0,
|
|
689
|
+
canDrop: !disabled && dragged !== void 0,
|
|
690
|
+
onStart: () => {
|
|
691
|
+
setDragged(state.key);
|
|
692
|
+
},
|
|
693
|
+
onEnd: endDrag,
|
|
694
|
+
onOver: (half) => {
|
|
695
|
+
setTarget((current) => current?.key === state.key && current.half === half ? current : {
|
|
696
|
+
key: state.key,
|
|
697
|
+
half
|
|
698
|
+
});
|
|
699
|
+
},
|
|
700
|
+
onLeave: () => {
|
|
701
|
+
setTarget((current) => current?.key === state.key ? void 0 : current);
|
|
702
|
+
},
|
|
703
|
+
onDrop: (half) => {
|
|
704
|
+
const from = rows.findIndex((row) => row.key === dragged);
|
|
705
|
+
const insertion = index + (half === "after" ? 1 : 0);
|
|
706
|
+
move(from, insertion > from ? insertion - 1 : insertion);
|
|
707
|
+
endDrag();
|
|
708
|
+
},
|
|
709
|
+
onMove: (offset) => {
|
|
710
|
+
move(index, index + offset);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
})),
|
|
714
|
+
toggle: (index) => {
|
|
715
|
+
setRows(rows.map((row, at) => at === index ? {
|
|
716
|
+
...row,
|
|
717
|
+
expanded: !row.expanded
|
|
718
|
+
} : row));
|
|
719
|
+
},
|
|
720
|
+
edit: (index, field, text) => {
|
|
721
|
+
setRows(rows.map((row, at) => {
|
|
722
|
+
if (at !== index) return row;
|
|
723
|
+
const editing = new Map(row.editing);
|
|
724
|
+
if (text === void 0) editing.delete(field);
|
|
725
|
+
else editing.set(field, text);
|
|
726
|
+
return {
|
|
727
|
+
...row,
|
|
728
|
+
editing
|
|
729
|
+
};
|
|
730
|
+
}));
|
|
731
|
+
},
|
|
732
|
+
forget: (removed) => {
|
|
733
|
+
setRows(rows.filter((_row, index) => !removed.has(index)));
|
|
734
|
+
endDrag();
|
|
735
|
+
},
|
|
736
|
+
reset: () => {
|
|
737
|
+
setRows(models.map(() => createRow(nextKey.current++)));
|
|
738
|
+
endDrag();
|
|
739
|
+
}
|
|
740
|
+
};
|
|
581
741
|
}
|
|
742
|
+
//#endregion
|
|
743
|
+
//#region lib/types/client/DeepSeekModelsEditor.js
|
|
582
744
|
/** Accepted capacity spellings: a decimal count with an optional K/M suffix. */
|
|
583
745
|
const CAPACITY_PATTERN = /^(\d+(?:\.\d+)?)([km])?$/i;
|
|
584
746
|
/** Decimal suffix scales — `1M` is 1000K, matching how model capacities are quoted. */
|
|
@@ -667,8 +829,7 @@ window.__ModuleLoader__.load({
|
|
|
667
829
|
* @returns the catalog editor.
|
|
668
830
|
*/
|
|
669
831
|
function DeepSeekModelsEditor(props) {
|
|
670
|
-
const
|
|
671
|
-
const [expanded, setExpanded] = (0, react.useState)(() => /* @__PURE__ */ new Set());
|
|
832
|
+
const rowState = useModelRows(props.models, props.onChange, props.disabled);
|
|
672
833
|
const update = (index, key, value) => {
|
|
673
834
|
const next = props.models.map((model, at) => {
|
|
674
835
|
const copy = { ...model };
|
|
@@ -680,61 +841,32 @@ window.__ModuleLoader__.load({
|
|
|
680
841
|
props.onChange(next);
|
|
681
842
|
};
|
|
682
843
|
const remove = (index) => {
|
|
683
|
-
|
|
684
|
-
const next = /* @__PURE__ */ new Map();
|
|
685
|
-
for (const [key, text] of current) {
|
|
686
|
-
const at = rowOf(key);
|
|
687
|
-
if (at === index) continue;
|
|
688
|
-
next.set(at > index ? key.replace(/^\d+/, String(at - 1)) : key, text);
|
|
689
|
-
}
|
|
690
|
-
return next;
|
|
691
|
-
});
|
|
692
|
-
setExpanded((current) => {
|
|
693
|
-
const next = /* @__PURE__ */ new Set();
|
|
694
|
-
for (const at of current) {
|
|
695
|
-
if (at === index) continue;
|
|
696
|
-
next.add(at > index ? at - 1 : at);
|
|
697
|
-
}
|
|
698
|
-
return next;
|
|
699
|
-
});
|
|
844
|
+
rowState.forget(new Set([index]));
|
|
700
845
|
props.onChange(props.models.filter((_model, at) => at !== index).map((model) => ({ ...model })));
|
|
701
846
|
};
|
|
702
847
|
const reset = () => {
|
|
703
|
-
|
|
704
|
-
setExpanded(/* @__PURE__ */ new Set());
|
|
848
|
+
rowState.reset();
|
|
705
849
|
props.onReset();
|
|
706
850
|
};
|
|
707
|
-
const toggle = (index) => {
|
|
708
|
-
setExpanded((current) => {
|
|
709
|
-
const next = new Set(current);
|
|
710
|
-
if (!next.delete(index)) next.add(index);
|
|
711
|
-
return next;
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
851
|
/** The field's text: its live keystrokes, else the stored count spelled short. */
|
|
715
852
|
const capacityText = (model, index, field) => {
|
|
716
|
-
const typed = editing.get(
|
|
853
|
+
const typed = rowState.rows[index]?.editing.get(field);
|
|
717
854
|
if (typed !== void 0) return typed;
|
|
718
855
|
const value = model[field];
|
|
719
856
|
return typeof value === "number" ? formatCapacity(value) : "";
|
|
720
857
|
};
|
|
721
858
|
const settleCapacity = (index, field) => {
|
|
722
|
-
const
|
|
723
|
-
const typed = editing.get(key);
|
|
859
|
+
const typed = rowState.rows[index]?.editing.get(field);
|
|
724
860
|
if (typed === void 0) return;
|
|
725
861
|
const parsed = parseCapacity(typed);
|
|
726
862
|
if (parsed !== void 0 && Number.isNaN(parsed)) return;
|
|
727
|
-
|
|
728
|
-
const next = new Map(current);
|
|
729
|
-
next.delete(key);
|
|
730
|
-
return next;
|
|
731
|
-
});
|
|
863
|
+
rowState.edit(index, field, void 0);
|
|
732
864
|
};
|
|
733
865
|
const capacityInput = (model, index, field, fallback) => ({
|
|
734
866
|
value: capacityText(model, index, field),
|
|
735
867
|
placeholder: fallback === void 0 ? props.t(field === "contextWindow" ? "contextWindowPlaceholder" : "maxTokensPlaceholder") : formatCapacity(fallback),
|
|
736
868
|
onChange: (text) => {
|
|
737
|
-
|
|
869
|
+
rowState.edit(index, field, text);
|
|
738
870
|
update(index, field, parseCapacity(text));
|
|
739
871
|
},
|
|
740
872
|
onBlur: () => {
|
|
@@ -764,16 +896,21 @@ window.__ModuleLoader__.load({
|
|
|
764
896
|
children: props.t("resetModels")
|
|
765
897
|
}) : null]
|
|
766
898
|
}),
|
|
767
|
-
|
|
768
|
-
className: ModelsSection_module_css_default["modelEmpty"],
|
|
769
|
-
children: props.t("modelsEmpty")
|
|
770
|
-
}) : (0, react_jsx_runtime.jsx)("div", {
|
|
899
|
+
(0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.AnimatedRows, {
|
|
771
900
|
className: ModelsSection_module_css_default["modelList"],
|
|
772
|
-
|
|
901
|
+
rowKeys: rowState.rows.map((row) => String(row.key)),
|
|
902
|
+
ready: true,
|
|
903
|
+
resetKey: "",
|
|
904
|
+
children: [props.models.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
905
|
+
className: ModelsSection_module_css_default["modelEmpty"],
|
|
906
|
+
children: props.t("modelsEmpty")
|
|
907
|
+
}) : null, rowState.rows.map(({ model, key, expanded, order }, index) => (0, react_jsx_runtime.jsx)(ModelRow, {
|
|
908
|
+
rowKey: key,
|
|
909
|
+
order,
|
|
773
910
|
model,
|
|
774
911
|
position: index + 1,
|
|
775
912
|
inputField: "inputModalities",
|
|
776
|
-
expanded
|
|
913
|
+
expanded,
|
|
777
914
|
disabled: props.disabled,
|
|
778
915
|
t: props.t,
|
|
779
916
|
contextWindow: capacityInput(model, index, "contextWindow", props.defaultContextWindow),
|
|
@@ -789,12 +926,12 @@ window.__ModuleLoader__.load({
|
|
|
789
926
|
props.onChange(props.models.map((row, at) => at === index ? next : row));
|
|
790
927
|
},
|
|
791
928
|
onToggle: () => {
|
|
792
|
-
toggle(index);
|
|
929
|
+
rowState.toggle(index);
|
|
793
930
|
},
|
|
794
931
|
onRemove: () => {
|
|
795
932
|
remove(index);
|
|
796
933
|
}
|
|
797
|
-
},
|
|
934
|
+
}, key))]
|
|
798
935
|
}),
|
|
799
936
|
(0, react_jsx_runtime.jsxs)("button", {
|
|
800
937
|
type: "button",
|
|
@@ -819,7 +956,11 @@ window.__ModuleLoader__.load({
|
|
|
819
956
|
* catalog, so a row is only ever added deliberately. Fetching asks the endpoint
|
|
820
957
|
* **the form currently shows** — including a key typed but not yet saved — so
|
|
821
958
|
* adding a provider is one pass instead of save-then-return; the reply is
|
|
822
|
-
* candidates the user picks from, never configuration written behind them.
|
|
959
|
+
* candidates the user picks from, never configuration written behind them. The
|
|
960
|
+
* picker opens with the configured models checked, so confirming it adds the
|
|
961
|
+
* newly checked candidates and removes the unchecked configured ones in the
|
|
962
|
+
* draft; configured rows the reply does not list are kept, and a confirmation
|
|
963
|
+
* that would empty the list is refused.
|
|
823
964
|
*
|
|
824
965
|
* A provider that cannot be interrogated (an unreachable endpoint, a protocol
|
|
825
966
|
* with no readable listing) is not a dead end: the failure is shown next to the
|
|
@@ -839,16 +980,13 @@ window.__ModuleLoader__.load({
|
|
|
839
980
|
* What an empty capacity field is worth, shown as its placeholder so a row left
|
|
840
981
|
* blank does not read as a model with no capacity at all.
|
|
841
982
|
*
|
|
842
|
-
*
|
|
843
|
-
* `
|
|
844
|
-
*
|
|
845
|
-
* so typing `256K` stores 256000 while leaving the field blank keeps the
|
|
846
|
-
* adapter's 262144. A deployment that overrides those defaults is not
|
|
847
|
-
* reflected here — nothing on this page can read them.
|
|
983
|
+
* These hints match llm-pi-ai's built-in `defaultContextWindow` and
|
|
984
|
+
* `defaultMaxTokens` in decimal K/M notation. Provider overrides are not
|
|
985
|
+
* available to this component and are not reflected in the hints.
|
|
848
986
|
*/
|
|
849
987
|
const CAPACITY_HINT = {
|
|
850
|
-
contextWindow: "
|
|
851
|
-
maxTokens: "
|
|
988
|
+
contextWindow: "1M",
|
|
989
|
+
maxTokens: "128K"
|
|
852
990
|
};
|
|
853
991
|
/**
|
|
854
992
|
* Spell a stored count for a field that may be unset. The spelling itself is
|
|
@@ -906,35 +1044,14 @@ window.__ModuleLoader__.load({
|
|
|
906
1044
|
const catalog = inheritedCatalog?.provider === catalogProvider ? inheritedCatalog?.models : void 0;
|
|
907
1045
|
const inputDefaults = (0, react.useMemo)(() => new Map(catalog?.map((model) => [model.id, model.inputModalities])), [catalog]);
|
|
908
1046
|
const [candidates, setCandidates] = (0, react.useState)(void 0);
|
|
909
|
-
const [
|
|
1047
|
+
const [flipped, setFlipped] = (0, react.useState)(/* @__PURE__ */ new Set());
|
|
910
1048
|
const [candidateQuery, setCandidateQuery] = (0, react.useState)("");
|
|
911
|
-
const
|
|
912
|
-
const [editing, setEditing] = (0, react.useState)(/* @__PURE__ */ new Map());
|
|
913
|
-
/** Buffer key for one capacity field; the row half moves when rows do. */
|
|
914
|
-
const bufferKey = (index, field) => `${String(index)}:${field}`;
|
|
1049
|
+
const rowState = useModelRows(models, onChange, disabled);
|
|
915
1050
|
const editCapacity = (index, field, text) => {
|
|
916
|
-
|
|
1051
|
+
rowState.edit(index, field, text);
|
|
917
1052
|
patch(index, { [field]: parseCapacity(text) });
|
|
918
1053
|
};
|
|
919
|
-
|
|
920
|
-
const capacityText = (model, index, field) => editing.get(bufferKey(index, field)) ?? capacitySpelling(numberOf(model, field));
|
|
921
|
-
/** Drop one row's entries and shift the rows after it down, in one pass. */
|
|
922
|
-
const reindexOnRemove = (current, index) => {
|
|
923
|
-
const next = /* @__PURE__ */ new Map();
|
|
924
|
-
for (const [key, value] of current) {
|
|
925
|
-
const at = Number(key.slice(0, key.indexOf(":")));
|
|
926
|
-
if (at === index) continue;
|
|
927
|
-
next.set(at > index ? key.replace(/^\d+/, String(at - 1)) : key, value);
|
|
928
|
-
}
|
|
929
|
-
return next;
|
|
930
|
-
};
|
|
931
|
-
const toggleExpanded = (index) => {
|
|
932
|
-
setExpanded((current) => {
|
|
933
|
-
const next = new Set(current);
|
|
934
|
-
if (!next.delete(index)) next.add(index);
|
|
935
|
-
return next;
|
|
936
|
-
});
|
|
937
|
-
};
|
|
1054
|
+
const capacityText = (model, index, field) => rowState.rows[index]?.editing.get(field) ?? capacitySpelling(numberOf(model, field));
|
|
938
1055
|
const patch = (index, next) => {
|
|
939
1056
|
onChange(models.map((model, at) => {
|
|
940
1057
|
if (at !== index) return model;
|
|
@@ -968,46 +1085,53 @@ window.__ModuleLoader__.load({
|
|
|
968
1085
|
setFailure(t("fetchEmpty"));
|
|
969
1086
|
return;
|
|
970
1087
|
}
|
|
971
|
-
const known = new Set(models.map((model) => textOf(model, "id")));
|
|
972
1088
|
setCandidateQuery("");
|
|
973
|
-
|
|
974
|
-
|
|
1089
|
+
setFlipped(/* @__PURE__ */ new Set());
|
|
1090
|
+
setCandidates([...new Map(found.map((model) => [model.id, model])).values()]);
|
|
975
1091
|
} finally {
|
|
976
1092
|
setBusy(false);
|
|
977
1093
|
}
|
|
978
1094
|
};
|
|
979
1095
|
const closePicker = () => {
|
|
980
1096
|
setCandidates(void 0);
|
|
981
|
-
|
|
1097
|
+
setFlipped(/* @__PURE__ */ new Set());
|
|
982
1098
|
setCandidateQuery("");
|
|
983
1099
|
};
|
|
1100
|
+
const configuredIds = new Set(models.map((model) => textOf(model, "id")).filter((id) => id.length > 0));
|
|
1101
|
+
const pickedByDefault = (id) => configuredIds.size === 0 || configuredIds.has(id);
|
|
1102
|
+
const isPicked = (id) => pickedByDefault(id) !== flipped.has(id);
|
|
1103
|
+
const activeCandidates = candidates ?? [];
|
|
1104
|
+
const listed = new Set(activeCandidates.map((candidate) => candidate.id));
|
|
1105
|
+
const removedRows = /* @__PURE__ */ new Set();
|
|
1106
|
+
models.forEach((model, at) => {
|
|
1107
|
+
const id = textOf(model, "id");
|
|
1108
|
+
if (listed.has(id) && !isPicked(id)) removedRows.add(at);
|
|
1109
|
+
});
|
|
1110
|
+
const keptRows = models.filter((_model, at) => !removedRows.has(at));
|
|
1111
|
+
const keptIds = new Set(keptRows.map((model) => textOf(model, "id")));
|
|
1112
|
+
const addedRows = activeCandidates.filter((candidate) => isPicked(candidate.id) && !keptIds.has(candidate.id)).map((candidate) => props.thinkingPresets ? withFetchedClaudeMetadata(adopt(candidate)) : adopt(candidate));
|
|
1113
|
+
const emptiesList = models.length > 0 && keptRows.length === 0 && addedRows.length === 0;
|
|
984
1114
|
const adoptPicked = () => {
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
const byId = new Map(models.map((model) => [textOf(model, "id"), model]));
|
|
988
|
-
for (const candidate of candidates) {
|
|
989
|
-
if (!picked.has(candidate.id)) continue;
|
|
990
|
-
byId.set(candidate.id, byId.get(candidate.id) ?? (props.thinkingPresets ? withFetchedClaudeMetadata(adopt(candidate)) : adopt(candidate)));
|
|
991
|
-
}
|
|
992
|
-
onChange([...byId.values()]);
|
|
1115
|
+
onChange([...keptRows, ...addedRows]);
|
|
1116
|
+
rowState.forget(removedRows);
|
|
993
1117
|
closePicker();
|
|
994
1118
|
};
|
|
995
1119
|
const toggle = (id) => {
|
|
996
|
-
|
|
1120
|
+
setFlipped((current) => {
|
|
997
1121
|
const next = new Set(current);
|
|
998
1122
|
if (!next.delete(id)) next.add(id);
|
|
999
1123
|
return next;
|
|
1000
1124
|
});
|
|
1001
1125
|
};
|
|
1002
|
-
const activeCandidates = candidates ?? [];
|
|
1003
1126
|
const normalizedCandidateQuery = candidateQuery.trim().toLowerCase();
|
|
1004
1127
|
const visibleCandidates = normalizedCandidateQuery.length === 0 ? activeCandidates : activeCandidates.filter((candidate) => candidate.id.toLowerCase().includes(normalizedCandidateQuery) || candidate.name?.toLowerCase().includes(normalizedCandidateQuery) === true);
|
|
1005
|
-
const allVisibleCandidatesPicked = visibleCandidates.length > 0 && visibleCandidates.every((candidate) =>
|
|
1128
|
+
const allVisibleCandidatesPicked = visibleCandidates.length > 0 && visibleCandidates.every((candidate) => isPicked(candidate.id));
|
|
1006
1129
|
const toggleVisibleCandidates = () => {
|
|
1007
|
-
|
|
1008
|
-
|
|
1130
|
+
const target = !allVisibleCandidatesPicked;
|
|
1131
|
+
setFlipped((current) => {
|
|
1009
1132
|
const next = new Set(current);
|
|
1010
|
-
for (const candidate of visibleCandidates) next.
|
|
1133
|
+
for (const candidate of visibleCandidates) if (pickedByDefault(candidate.id) === target) next.delete(candidate.id);
|
|
1134
|
+
else next.add(candidate.id);
|
|
1011
1135
|
return next;
|
|
1012
1136
|
});
|
|
1013
1137
|
};
|
|
@@ -1033,7 +1157,10 @@ window.__ModuleLoader__.load({
|
|
|
1033
1157
|
type: "button",
|
|
1034
1158
|
className: ModelsSection_module_css_default["linkButton"],
|
|
1035
1159
|
disabled,
|
|
1036
|
-
onClick:
|
|
1160
|
+
onClick: () => {
|
|
1161
|
+
rowState.reset();
|
|
1162
|
+
props.onReset?.();
|
|
1163
|
+
},
|
|
1037
1164
|
children: t("resetModels")
|
|
1038
1165
|
}) : null,
|
|
1039
1166
|
(0, react_jsx_runtime.jsx)("button", {
|
|
@@ -1052,9 +1179,14 @@ window.__ModuleLoader__.load({
|
|
|
1052
1179
|
className: ModelsSection_module_css_default["modelEmpty"],
|
|
1053
1180
|
children: t("modelsEmpty")
|
|
1054
1181
|
}) : null,
|
|
1055
|
-
(0, react_jsx_runtime.jsx)(
|
|
1182
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.AnimatedRows, {
|
|
1056
1183
|
className: ModelsSection_module_css_default["modelList"],
|
|
1057
|
-
|
|
1184
|
+
rowKeys: rowState.rows.map((row) => String(row.key)),
|
|
1185
|
+
ready: true,
|
|
1186
|
+
resetKey: "",
|
|
1187
|
+
children: rowState.rows.map(({ model, key, expanded, order }, index) => (0, react_jsx_runtime.jsx)(ModelRow, {
|
|
1188
|
+
rowKey: key,
|
|
1189
|
+
order,
|
|
1058
1190
|
model,
|
|
1059
1191
|
position: index + 1,
|
|
1060
1192
|
inputField: "input",
|
|
@@ -1063,7 +1195,7 @@ window.__ModuleLoader__.load({
|
|
|
1063
1195
|
inputLoading: catalogProvider !== void 0 && catalog === void 0,
|
|
1064
1196
|
reasoningLevels: props.reasoningLevels,
|
|
1065
1197
|
adaptiveFallback: props.adaptiveFallback,
|
|
1066
|
-
expanded
|
|
1198
|
+
expanded,
|
|
1067
1199
|
disabled,
|
|
1068
1200
|
t,
|
|
1069
1201
|
contextWindow: {
|
|
@@ -1092,19 +1224,13 @@ window.__ModuleLoader__.load({
|
|
|
1092
1224
|
onChange(models.map((row, at) => at === index ? next : row));
|
|
1093
1225
|
},
|
|
1094
1226
|
onToggle: () => {
|
|
1095
|
-
|
|
1227
|
+
rowState.toggle(index);
|
|
1096
1228
|
},
|
|
1097
1229
|
onRemove: () => {
|
|
1098
1230
|
onChange(models.filter((_model, at) => at !== index));
|
|
1099
|
-
|
|
1100
|
-
const next = /* @__PURE__ */ new Set();
|
|
1101
|
-
for (const at of current) if (at < index) next.add(at);
|
|
1102
|
-
else if (at > index) next.add(at - 1);
|
|
1103
|
-
return next;
|
|
1104
|
-
});
|
|
1105
|
-
setEditing((current) => reindexOnRemove(current, index));
|
|
1231
|
+
rowState.forget(new Set([index]));
|
|
1106
1232
|
}
|
|
1107
|
-
},
|
|
1233
|
+
}, key))
|
|
1108
1234
|
}),
|
|
1109
1235
|
(0, react_jsx_runtime.jsxs)("button", {
|
|
1110
1236
|
type: "button",
|
|
@@ -1132,6 +1258,8 @@ window.__ModuleLoader__.load({
|
|
|
1132
1258
|
children: t("cancel")
|
|
1133
1259
|
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1134
1260
|
variant: "outline",
|
|
1261
|
+
disabled: emptiesList,
|
|
1262
|
+
title: emptiesList ? t("fetchKeepOne") : void 0,
|
|
1135
1263
|
onClick: adoptPicked,
|
|
1136
1264
|
children: t("fetchAdopt")
|
|
1137
1265
|
})] }),
|
|
@@ -1165,7 +1293,7 @@ window.__ModuleLoader__.load({
|
|
|
1165
1293
|
className: ModelsSection_module_css_default["candidateLabel"],
|
|
1166
1294
|
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
1167
1295
|
type: "checkbox",
|
|
1168
|
-
checked:
|
|
1296
|
+
checked: isPicked(candidate.id),
|
|
1169
1297
|
onChange: () => {
|
|
1170
1298
|
toggle(candidate.id);
|
|
1171
1299
|
}
|
|
@@ -3511,6 +3639,8 @@ window.__ModuleLoader__.load({
|
|
|
3511
3639
|
modelReasoningOffValuePlaceholder: "Turns reasoning off",
|
|
3512
3640
|
addModel: "Add model",
|
|
3513
3641
|
removeModel: "Delete model",
|
|
3642
|
+
reorderModel: "Reorder model",
|
|
3643
|
+
reorderModelHelp: "Drag to reorder, or use the up and down arrow keys.",
|
|
3514
3644
|
modelsEmpty: "No models will be shown in the selector. Unlisted IDs can still be sent directly.",
|
|
3515
3645
|
keyBlank: "Enter the API key, or leave the field empty to keep the stored one.",
|
|
3516
3646
|
keyBlankNew: "Enter the API key, or leave the field empty if this provider authenticates another way.",
|
|
@@ -3527,13 +3657,14 @@ window.__ModuleLoader__.load({
|
|
|
3527
3657
|
fetching: "Asking the provider…",
|
|
3528
3658
|
fetchNeedsBaseUrl: "Enter the base URL first, then fetch.",
|
|
3529
3659
|
fetchEmpty: "The provider listed no models. Add them by hand.",
|
|
3530
|
-
fetchTitle: "Choose models
|
|
3531
|
-
fetchDescription: "These are the models this provider has available.
|
|
3660
|
+
fetchTitle: "Choose models",
|
|
3661
|
+
fetchDescription: "These are the models this provider has available. Checked models make up the list.",
|
|
3532
3662
|
fetchSearch: "Search models",
|
|
3533
3663
|
fetchNoMatches: "No matching models.",
|
|
3534
3664
|
fetchSelectAll: "Select all",
|
|
3535
3665
|
fetchDeselectAll: "Deselect all",
|
|
3536
|
-
fetchAdopt: "
|
|
3666
|
+
fetchAdopt: "Update list",
|
|
3667
|
+
fetchKeepOne: "Keep at least one model checked.",
|
|
3537
3668
|
customTag: "Custom",
|
|
3538
3669
|
claudeCustomAdd: "Add Claude provider",
|
|
3539
3670
|
claudeCustomTitle: "Claude provider",
|
|
@@ -3654,6 +3785,8 @@ window.__ModuleLoader__.load({
|
|
|
3654
3785
|
modelReasoningOffValuePlaceholder: "关闭思考",
|
|
3655
3786
|
addModel: "添加模型",
|
|
3656
3787
|
removeModel: "删除模型",
|
|
3788
|
+
reorderModel: "调整模型顺序",
|
|
3789
|
+
reorderModelHelp: "拖动排序,或使用上下方向键调整顺序。",
|
|
3657
3790
|
modelsEmpty: "模型选择器中将不显示任何模型;目录外 ID 仍可直接发送。",
|
|
3658
3791
|
keyBlank: "请输入 API 密钥;留空则保持已存储的密钥。",
|
|
3659
3792
|
keyBlankNew: "请输入 API 密钥;若该提供商以其他方式鉴权,可以留空。",
|
|
@@ -3670,13 +3803,14 @@ window.__ModuleLoader__.load({
|
|
|
3670
3803
|
fetching: "正在询问提供商…",
|
|
3671
3804
|
fetchNeedsBaseUrl: "请先填写 API 地址,再获取。",
|
|
3672
3805
|
fetchEmpty: "该提供商没有列出任何模型,请手动添加。",
|
|
3673
|
-
fetchTitle: "
|
|
3674
|
-
fetchDescription: "
|
|
3806
|
+
fetchTitle: "选择模型",
|
|
3807
|
+
fetchDescription: "以下是模型提供商的可用模型,勾选的模型即为模型列表。",
|
|
3675
3808
|
fetchSearch: "搜索模型",
|
|
3676
3809
|
fetchNoMatches: "没有匹配的模型。",
|
|
3677
3810
|
fetchSelectAll: "全选",
|
|
3678
3811
|
fetchDeselectAll: "取消全选",
|
|
3679
|
-
fetchAdopt: "
|
|
3812
|
+
fetchAdopt: "更新列表",
|
|
3813
|
+
fetchKeepOne: "请至少保留一个勾选的模型。",
|
|
3680
3814
|
customTag: "自定义",
|
|
3681
3815
|
claudeCustomAdd: "添加 Claude 提供方",
|
|
3682
3816
|
claudeCustomTitle: "Claude 提供方",
|
|
@@ -3713,6 +3847,846 @@ window.__ModuleLoader__.load({
|
|
|
3713
3847
|
onboardingSaving: "保存中…",
|
|
3714
3848
|
keyRequired: "请输入 API 密钥后继续。"
|
|
3715
3849
|
};
|
|
3850
|
+
/** Japanese copy, checked against the English keys. */
|
|
3851
|
+
const ja = {
|
|
3852
|
+
"nav": "モデル",
|
|
3853
|
+
"deepSeekAccount": "DeepSeekアカウント",
|
|
3854
|
+
"title": "モデル",
|
|
3855
|
+
"intro": "以下のプロバイダーのモデルを使用するには、APIキーを入力してください。",
|
|
3856
|
+
"edit": "編集",
|
|
3857
|
+
"editProvider": "{provider}を編集",
|
|
3858
|
+
"remove": "削除",
|
|
3859
|
+
"removeProvider": "{provider}を削除",
|
|
3860
|
+
"deleteTitle": "{provider}を削除しますか?",
|
|
3861
|
+
"deleteDescription": "{provider}を削除すると、その設定が削除されます。使用している認証情報は別の場所で管理されているため、保持されます。",
|
|
3862
|
+
"deleteDescriptionWithCredential": "{provider}を削除すると、その設定と保存済みのAPIキーが削除されます。",
|
|
3863
|
+
"deleteConfirm": "{provider}を削除",
|
|
3864
|
+
"deleting": "{provider}を削除中…",
|
|
3865
|
+
"add": "モデルプロバイダーを追加",
|
|
3866
|
+
"addMode": "追加方法",
|
|
3867
|
+
"addCatalog": "サードパーティのモデルプロバイダー",
|
|
3868
|
+
"addCustom": "カスタムモデルAPI",
|
|
3869
|
+
"addCatalogHint": "組み込みカタログからOpenAI、Anthropic、Kimiなどのプロバイダーを選択し、APIキーを入力してください。",
|
|
3870
|
+
"addCustomHint": "ベースURL、プロトコル、モデルを指定して、リレー、セルフホストサーバー、その他のOpenAI/Anthropic互換エンドポイントに接続します。",
|
|
3871
|
+
"addCatalogExhausted": "カタログ内のすべてのプロバイダーが設定済みです。",
|
|
3872
|
+
"addCustomUnavailable": "宣言できるAPIプロトコルがありません。",
|
|
3873
|
+
"provider": "プロバイダー",
|
|
3874
|
+
"close": "閉じる",
|
|
3875
|
+
"cancel": "キャンセル",
|
|
3876
|
+
"apply": "適用",
|
|
3877
|
+
"applying": "適用中…",
|
|
3878
|
+
"savedProvider": "{provider}を保存しました。",
|
|
3879
|
+
"credentialConfigured": "APIキー設定済み",
|
|
3880
|
+
"credentialMissing": "APIキー未設定",
|
|
3881
|
+
"accountSignedIn": "ログイン済み",
|
|
3882
|
+
"readOnly": "このデプロイでは設定ドキュメントは読み取り専用です。",
|
|
3883
|
+
"loadFailed": "プロバイダーディレクトリの読み込みに失敗しました",
|
|
3884
|
+
"conflict": "このカードを開いている間に、他のユーザーが設定を変更しました。閉じて開き直し、最新の値で編集してください。",
|
|
3885
|
+
"retry": "再試行",
|
|
3886
|
+
"keyInput": "APIキー",
|
|
3887
|
+
"keyReveal": "シークレットを表示",
|
|
3888
|
+
"keyHide": "シークレットを非表示",
|
|
3889
|
+
"keyPlaceholder": "APIキーを入力",
|
|
3890
|
+
"keyPlaceholderFallback": "空欄のままにすると環境変数を認証に使用します ({hint})",
|
|
3891
|
+
"keyPlaceholderSaved": "空欄のままにすると保存済みの認証情報を使用します",
|
|
3892
|
+
"keyFallbackMissing": "環境変数が検出されません。APIキーを入力するか、環境変数に{hint}を設定してください。",
|
|
3893
|
+
"keyFallbackDetected": "環境変数を検出しました。({hint})",
|
|
3894
|
+
"keyFallbackDetectedHidden": "環境変数を検出しました。",
|
|
3895
|
+
"keyFallbackUnchecked": "環境変数の認証情報の状態は確認されていません。",
|
|
3896
|
+
"keyHelp": "保存済みの認証情報が優先されます。以下に示す環境変数のフォールバック(この順): {env}。参照元は起動環境、$cwd/.env、$DSH_HOME/.envの順です。",
|
|
3897
|
+
"authHelp": "認証の詳細",
|
|
3898
|
+
"customized": "カスタマイズされた設定",
|
|
3899
|
+
"baseUrl": "ベースURL",
|
|
3900
|
+
"baseUrlDefault": "デフォルトエンドポイントなし",
|
|
3901
|
+
"baseUrlEnvironment": "プロバイダーのエンドポイント設定: {env}",
|
|
3902
|
+
"baseUrlConfigured": "プロバイダー設定のエンドポイント",
|
|
3903
|
+
"baseUrlPlaceholder": "{url}",
|
|
3904
|
+
"deepSeekBaseUrl": "https://api.deepseek.com/anthropic (デフォルトはDEEPSEEK_BASE_URLを使用)",
|
|
3905
|
+
"deepSeekEndpointHint": "Anthropic Messagesと互換性のあるAPIエンドポイントを使用してください。",
|
|
3906
|
+
"models": "モデル",
|
|
3907
|
+
"modelsInherited": "アダプターのデフォルトを使用",
|
|
3908
|
+
"modelsCustomized": "カスタマイズされたモデルカタログ",
|
|
3909
|
+
"resetModels": "デフォルトに戻す",
|
|
3910
|
+
"model": "モデル",
|
|
3911
|
+
"modelId": "モデルID",
|
|
3912
|
+
"modelName": "表示名",
|
|
3913
|
+
"modelNamePlaceholder": "空欄の場合はモデルIDを使用",
|
|
3914
|
+
"contextWindow": "コンテキストウィンドウ",
|
|
3915
|
+
"contextWindowPlaceholder": "プロバイダーのデフォルトを使用",
|
|
3916
|
+
"maxTokens": "最大出力トークン数",
|
|
3917
|
+
"maxTokensPlaceholder": "プロバイダーのデフォルトを使用",
|
|
3918
|
+
"modelAdvanced": "モデルオプション",
|
|
3919
|
+
"modelInputTypes": "入力タイプ",
|
|
3920
|
+
"modelInputText": "テキスト",
|
|
3921
|
+
"modelInputImage": "画像",
|
|
3922
|
+
"modelReasoning": "推論レベル",
|
|
3923
|
+
"modelReasoningLevel": "レベル",
|
|
3924
|
+
"modelReasoningValue": "API値",
|
|
3925
|
+
"modelReasoningHelp": "推論レベルについて",
|
|
3926
|
+
"modelReasoningHelpText": "API値はリクエストの推論強度フィールド(OpenAIのreasoning_effortなど)で送信されます。デフォルトはレベル名です。モデルプロバイダーのAPIドキュメントで別の値が指定されている場合はそれに従ってください。オフは推論を無効にするため値は不要です。設定に既に記述されている値は保持され、送信されます。",
|
|
3927
|
+
"modelReasoningNeedsLevel": "オフ以外のレベルを少なくとも1つ追加するか、推論レベルを無効にしてください。",
|
|
3928
|
+
"modelReasoningValueRequired": "オフ以外の各レベルにはAPI値が必要で、空の値は使用できません。",
|
|
3929
|
+
"modelReasoningAdd": "レベルを追加",
|
|
3930
|
+
"modelReasoningRemove": "レベルを削除",
|
|
3931
|
+
"modelReasoningOffValuePlaceholder": "推論を無効にします",
|
|
3932
|
+
"addModel": "モデルを追加",
|
|
3933
|
+
"removeModel": "モデルを削除",
|
|
3934
|
+
"reorderModel": "モデルの順序を変更",
|
|
3935
|
+
"reorderModelHelp": "ドラッグ、または上下の矢印キーで順序を変更できます。",
|
|
3936
|
+
"modelsEmpty": "セレクターにモデルが表示されません。一覧にないIDも直接送信できます。",
|
|
3937
|
+
"keyBlank": "APIキーを入力してください。空欄のままにすると保存済みのキーが保持されます。",
|
|
3938
|
+
"keyBlankNew": "APIキーを入力してください。このプロバイダーが別の方法で認証する場合は空欄のままにしてください。",
|
|
3939
|
+
"keyIllegalCharacters": "このAPIキーは有効な形式ではありません。確認してください。",
|
|
3940
|
+
"modelIdRequired": "モデルIDは必須です。",
|
|
3941
|
+
"modelIdDuplicate": "モデルIDは一意である必要があります。",
|
|
3942
|
+
"modelNameInvalid": "表示名は空にできません。",
|
|
3943
|
+
"modelContextInvalid": "コンテキストウィンドウは正の数値(131072、256K、1Mなど)で指定してください。",
|
|
3944
|
+
"modelMaxTokensInvalid": "最大出力トークン数は正の数値(8192、64K、1Mなど)で指定してください。",
|
|
3945
|
+
"advancedHint": "その他のフィールドはcordis.patch.ymlにあります。そのセクションを直接編集してください。",
|
|
3946
|
+
"modelCapacityInvalid": "容量は数値で指定し、末尾にKまたはMを付けられます。",
|
|
3947
|
+
"modelDuplicate": "各モデルIDは1回のみ指定できます。",
|
|
3948
|
+
"fetchModels": "利用可能なモデルを取得",
|
|
3949
|
+
"fetching": "プロバイダーに問い合わせ中…",
|
|
3950
|
+
"fetchNeedsBaseUrl": "先にベースURLを入力してから取得してください。",
|
|
3951
|
+
"fetchEmpty": "プロバイダーはモデルを一覧表示しませんでした。手動で追加してください。",
|
|
3952
|
+
"fetchTitle": "モデルを選択",
|
|
3953
|
+
"fetchDescription": "このプロバイダーで利用可能なモデルです。チェックしたモデルが一覧になります。",
|
|
3954
|
+
"fetchSearch": "モデルを検索",
|
|
3955
|
+
"fetchNoMatches": "一致するモデルがありません。",
|
|
3956
|
+
"fetchSelectAll": "すべて選択",
|
|
3957
|
+
"fetchDeselectAll": "すべて解除",
|
|
3958
|
+
"fetchAdopt": "一覧を更新",
|
|
3959
|
+
"fetchKeepOne": "少なくとも1つのモデルをチェックしたままにしてください。",
|
|
3960
|
+
"customTag": "カスタム",
|
|
3961
|
+
"customRoute": "プロバイダーID",
|
|
3962
|
+
"customRouteHint": "リクエスト時および認証情報名としてこのプロバイダーを一意に識別する、小文字で始まる小文字の識別子です。",
|
|
3963
|
+
"customRouteInvalid": "小文字で始め、その後は小文字・数字・ハイフンを使用してください。",
|
|
3964
|
+
"customRouteTaken": "このIDは既に別のプロバイダーで使用されています。",
|
|
3965
|
+
"customDisplayName": "表示名",
|
|
3966
|
+
"customApi": "APIプロトコル",
|
|
3967
|
+
"customApiUnset": "未選択",
|
|
3968
|
+
"protocolOpenAiCompletions": "OpenAI Chat Completions",
|
|
3969
|
+
"protocolOpenAiResponses": "OpenAI Responses",
|
|
3970
|
+
"protocolAnthropicMessages": "Anthropic Messages",
|
|
3971
|
+
"customNeedsBaseUrl": "カスタムプロバイダーにはベースURLが必要です。",
|
|
3972
|
+
"customBaseUrlInvalid": "有効なHTTPまたはHTTPSのURLを入力してください。",
|
|
3973
|
+
"customNeedsModels": "カスタムプロバイダーには少なくとも1つのモデルが必要です。",
|
|
3974
|
+
"customBaseUrlPlaceholder": "https://gateway.example/v1",
|
|
3975
|
+
"customAnthropicBaseUrlPlaceholder": "https://gateway.example",
|
|
3976
|
+
"settingsPathUnresolvable": "解決できない設定パス",
|
|
3977
|
+
"create": "プロバイダーを作成",
|
|
3978
|
+
"creating": "作成中…",
|
|
3979
|
+
"welcomeTitle": "プレビューに関するお知らせ",
|
|
3980
|
+
"welcomeBody": "DeepSeek Harness 0.2はまだプレビュー版であり、多くの領域で継続的な改善と洗練が必要です。開発者とユーザーの皆さまからのフィードバックとご提案を歓迎します。新しいデスクトップアプリは幅広いユーザーを対象としていますが、開発者向けの高度な機能は設定で有効にできます。DeepSeek Harnessの製品機能とプラグインAPIは今後も急速な反復と進化を続け、徐々に安定していく見込みです。\n\nオープンソースで再利用可能かつ組み合わせ可能なインフラストラクチャを基盤に、世界中のユーザーと開発者と共に知能の限界を探求していくことを楽しみにしています。皆さまがDeepSeek Harnessでアイデアを形にし、コミュニティに参加してプラグインエコシステムを豊かにしてくださることを歓迎します。",
|
|
3981
|
+
"welcomeContinue": "続ける",
|
|
3982
|
+
"welcomeError": "確認を保存できませんでした。もう一度お試しください。",
|
|
3983
|
+
"onboardingTitle": "APIキーを追加して始める",
|
|
3984
|
+
"onboardingDescription": "公式のDeepSeekプロバイダーを設定して開発を始めましょう。",
|
|
3985
|
+
"onboardingLater": "後で設定",
|
|
3986
|
+
"onboardingSave": "保存して続ける",
|
|
3987
|
+
"onboardingSaving": "保存中…",
|
|
3988
|
+
"keyRequired": "続けるにはAPIキーを入力してください。"
|
|
3989
|
+
};
|
|
3990
|
+
/** Spanish dictionary, checked against the English keys. */
|
|
3991
|
+
const es = {
|
|
3992
|
+
nav: "Modelos",
|
|
3993
|
+
deepSeekAccount: "Cuenta DeepSeek",
|
|
3994
|
+
title: "Modelos",
|
|
3995
|
+
intro: "Ingrese sus claves API para usar modelos de los siguientes proveedores.",
|
|
3996
|
+
edit: "Editar",
|
|
3997
|
+
editProvider: "Editar {provider}",
|
|
3998
|
+
remove: "Eliminar",
|
|
3999
|
+
removeProvider: "Eliminar {provider}",
|
|
4000
|
+
deleteTitle: "¿Eliminar {provider}?",
|
|
4001
|
+
deleteDescription: "Al eliminar {provider} se elimina su configuración. Cualquier credencial que utilice se administra en otro lugar y se conservará.",
|
|
4002
|
+
deleteDescriptionWithCredential: "Al eliminar {provider} se elimina su configuración y la clave API almacenada.",
|
|
4003
|
+
deleteConfirm: "Eliminar {provider}",
|
|
4004
|
+
deleting: "Eliminando {provider}…",
|
|
4005
|
+
add: "Agregar proveedor de modelo",
|
|
4006
|
+
addMode: "como agregar",
|
|
4007
|
+
addCatalog: "Proveedor de modelos externo",
|
|
4008
|
+
addCustom: "Modelo personalizado API",
|
|
4009
|
+
addCatalogHint: "Elija OpenAI, Anthropic, Kimi u otro proveedor del catálogo integrado e ingrese su clave API.",
|
|
4010
|
+
addCustomHint: "Conecte un repetidor, un servidor autohospedado o cualquier otro punto final compatible con OpenAI o Anthropic mediante su URL base, protocolo y modelos.",
|
|
4011
|
+
addCatalogExhausted: "Cada proveedor de catálogo ya está configurado.",
|
|
4012
|
+
addCustomUnavailable: "No hay ningún protocolo API disponible para declarar.",
|
|
4013
|
+
provider: "Proveedor",
|
|
4014
|
+
close: "Cerrar",
|
|
4015
|
+
cancel: "Cancelar",
|
|
4016
|
+
apply: "Aplicar",
|
|
4017
|
+
applying: "Aplicando…",
|
|
4018
|
+
savedProvider: "Guardado {provider}.",
|
|
4019
|
+
credentialConfigured: "Clave API configurada",
|
|
4020
|
+
credentialMissing: "Falta la clave API",
|
|
4021
|
+
accountSignedIn: "Iniciado sesión",
|
|
4022
|
+
readOnly: "El documento de configuración es de solo lectura en esta implementación.",
|
|
4023
|
+
loadFailed: "Error al cargar el directorio de proveedores",
|
|
4024
|
+
conflict: "Alguien más cambió esta configuración mientras esta tarjeta estaba abierta. Ciérrelo y vuelva a abrirlo para editar los valores actuales.",
|
|
4025
|
+
retry: "Reintentar",
|
|
4026
|
+
keyInput: "Clave de API",
|
|
4027
|
+
keyReveal: "Mostrar secreto",
|
|
4028
|
+
keyHide: "Ocultar secreto",
|
|
4029
|
+
keyPlaceholder: "Ingrese su clave API",
|
|
4030
|
+
keyPlaceholderFallback: "Déjelo en blanco para usar env como autenticación ({hint})",
|
|
4031
|
+
keyPlaceholderSaved: "Déjelo en blanco para usar las credenciales guardadas",
|
|
4032
|
+
keyFallbackMissing: "No se detectó la variable de entorno. Ingrese una clave API o configure {hint} en su entorno.",
|
|
4033
|
+
keyFallbackDetected: "Se detectó var env. ({hint})",
|
|
4034
|
+
keyFallbackDetectedHidden: "Se detectó var env.",
|
|
4035
|
+
keyFallbackUnchecked: "El estado de la credencial ambiental no ha sido confirmado.",
|
|
4036
|
+
keyHelp: "Las credenciales guardadas se utilizan primero. Las alternativas de entorno se muestran aquí, en orden: {env}. Las fuentes son el entorno de inicio, $cwd/.env, luego $DSH_HOME/.env.",
|
|
4037
|
+
authHelp: "Detalles de autenticación",
|
|
4038
|
+
customized: "Configuraciones personalizadas",
|
|
4039
|
+
baseUrl: "URL base",
|
|
4040
|
+
baseUrlDefault: "Sin punto final predeterminado",
|
|
4041
|
+
baseUrlEnvironment: "Configuración del punto final del proveedor: {env}",
|
|
4042
|
+
baseUrlConfigured: "Punto final configurado por el proveedor",
|
|
4043
|
+
baseUrlPlaceholder: "{url}",
|
|
4044
|
+
deepSeekBaseUrl: "https://api.deepseek.com/anthropic (Uso predeterminado DEEPSEEK_BASE_URL)",
|
|
4045
|
+
deepSeekEndpointHint: "Utilice un punto final API compatible con Anthropic Messages.",
|
|
4046
|
+
models: "Modelos",
|
|
4047
|
+
modelsInherited: "Usando los valores predeterminados del adaptador",
|
|
4048
|
+
modelsCustomized: "Catálogo de modelos personalizado",
|
|
4049
|
+
resetModels: "Restaurar valores predeterminados",
|
|
4050
|
+
model: "modelo",
|
|
4051
|
+
modelId: "ID del modelo",
|
|
4052
|
+
modelName: "Nombre para mostrar",
|
|
4053
|
+
modelNamePlaceholder: "Utiliza el ID del modelo cuando está vacío",
|
|
4054
|
+
contextWindow: "ventana contextual",
|
|
4055
|
+
contextWindowPlaceholder: "Utiliza el proveedor predeterminado",
|
|
4056
|
+
maxTokens: "Fichas de salida máxima",
|
|
4057
|
+
maxTokensPlaceholder: "Utiliza el proveedor predeterminado",
|
|
4058
|
+
modelAdvanced: "Opciones de modelo",
|
|
4059
|
+
modelInputTypes: "Tipos de entrada",
|
|
4060
|
+
modelInputText: "Texto",
|
|
4061
|
+
modelInputImage: "Imagen",
|
|
4062
|
+
modelReasoning: "Niveles de razonamiento",
|
|
4063
|
+
modelReasoningLevel: "Nivel",
|
|
4064
|
+
modelReasoningValue: "Valor API",
|
|
4065
|
+
modelReasoningHelp: "Acerca de los niveles de razonamiento",
|
|
4066
|
+
modelReasoningHelpText: "El valor de la API se envía en el campo de esfuerzo de razonamiento de la solicitud, como reasoning_effort de OpenAI. De forma predeterminada se usa el nombre del nivel; si la documentación de la API del proveedor del modelo especifica otro valor, úselo. Desactivado deshabilita el razonamiento y no necesita un valor; cualquier valor ya guardado en la configuración se conserva y se envía.",
|
|
4067
|
+
modelReasoningNeedsLevel: "Agregue al menos un nivel además de Desactivado o desactive los niveles de razonamiento.",
|
|
4068
|
+
modelReasoningValueRequired: "Cada nivel además de Off necesita un valor API y ningún valor puede estar vacío.",
|
|
4069
|
+
modelReasoningAdd: "Agregar nivel",
|
|
4070
|
+
modelReasoningRemove: "Eliminar nivel",
|
|
4071
|
+
modelReasoningOffValuePlaceholder: "Desactiva el razonamiento",
|
|
4072
|
+
addModel: "Agregar modelo",
|
|
4073
|
+
removeModel: "Eliminar modelo",
|
|
4074
|
+
reorderModel: "Reordenar modelo",
|
|
4075
|
+
reorderModelHelp: "Arrastre para reordenar o use las teclas de flecha hacia arriba y hacia abajo.",
|
|
4076
|
+
modelsEmpty: "No se mostrará ningún modelo en el selector. Las identificaciones que no figuran en la lista aún se pueden enviar directamente.",
|
|
4077
|
+
keyBlank: "Ingrese la clave API, o deje el campo vacío para conservar la almacenada.",
|
|
4078
|
+
keyBlankNew: "Ingrese la clave API o deje el campo vacío si este proveedor se autentica de otra manera.",
|
|
4079
|
+
keyIllegalCharacters: "Esta clave API no tiene un formato válido. Por favor compruébalo.",
|
|
4080
|
+
modelIdRequired: "Se requiere identificación del modelo.",
|
|
4081
|
+
modelIdDuplicate: "El ID del modelo debe ser único.",
|
|
4082
|
+
modelNameInvalid: "El nombre para mostrar no puede estar vacío.",
|
|
4083
|
+
modelContextInvalid: "La ventana de contexto debe tener un recuento positivo, como 131072, 256K o 1M.",
|
|
4084
|
+
modelMaxTokensInvalid: "Los tokens de salida máxima deben tener un recuento positivo, como 8192, 64K o 1M.",
|
|
4085
|
+
advancedHint: "Otros campos se encuentran en cordis.patch.yml; edite esa sección directamente.",
|
|
4086
|
+
modelCapacityInvalid: "Una capacidad debe ser un número, opcionalmente con el sufijo K o M.",
|
|
4087
|
+
modelDuplicate: "Cada ID de modelo puede aparecer una vez.",
|
|
4088
|
+
fetchModels: "Buscar modelos disponibles",
|
|
4089
|
+
fetching: "Preguntando al proveedor...",
|
|
4090
|
+
fetchNeedsBaseUrl: "Ingrese primero la URL base y luego busque.",
|
|
4091
|
+
fetchEmpty: "El proveedor no enumeró ningún modelo. Agréguelos a mano.",
|
|
4092
|
+
fetchTitle: "Elige modelos",
|
|
4093
|
+
fetchDescription: "Estos son los modelos que tiene disponibles este proveedor. Los modelos comprobados componen la lista.",
|
|
4094
|
+
fetchSearch: "Buscar modelos",
|
|
4095
|
+
fetchNoMatches: "No hay modelos coincidentes.",
|
|
4096
|
+
fetchSelectAll: "Seleccionar todo",
|
|
4097
|
+
fetchDeselectAll: "Deseleccionar todo",
|
|
4098
|
+
fetchAdopt: "Lista de actualización",
|
|
4099
|
+
fetchKeepOne: "Mantenga al menos un modelo controlado.",
|
|
4100
|
+
customTag: "personalizado",
|
|
4101
|
+
customRoute: "ID del proveedor",
|
|
4102
|
+
customRouteHint: "Identificador en minúscula, que comienza con una letra, que nombra de forma exclusiva a este proveedor en las solicitudes y como su nombre de credencial.",
|
|
4103
|
+
customRouteInvalid: "Comience con una letra minúscula; luego letras minúsculas, dígitos y guiones.",
|
|
4104
|
+
customRouteTaken: "Un proveedor ya utiliza esta identificación.",
|
|
4105
|
+
customDisplayName: "Nombre para mostrar",
|
|
4106
|
+
customApi: "Protocolo API",
|
|
4107
|
+
customApiUnset: "No seleccionado",
|
|
4108
|
+
protocolOpenAiCompletions: "Finalizaciones del chat OpenAI",
|
|
4109
|
+
protocolOpenAiResponses: "Respuestas de OpenAI",
|
|
4110
|
+
protocolAnthropicMessages: "Mensajes antrópicos",
|
|
4111
|
+
customNeedsBaseUrl: "Un proveedor personalizado necesita una URL base.",
|
|
4112
|
+
customBaseUrlInvalid: "Ingrese una URL HTTP o HTTPS válida.",
|
|
4113
|
+
customNeedsModels: "Un proveedor personalizado necesita al menos un modelo.",
|
|
4114
|
+
customBaseUrlPlaceholder: "https://gateway.example/v1",
|
|
4115
|
+
customAnthropicBaseUrlPlaceholder: "https://gateway.example",
|
|
4116
|
+
settingsPathUnresolvable: "ruta de configuración irresoluble",
|
|
4117
|
+
create: "Crear proveedor",
|
|
4118
|
+
creating: "Creando…",
|
|
4119
|
+
welcomeTitle: "Aviso previo",
|
|
4120
|
+
welcomeBody: "DeepSeek Harness 0.2 aún está en versión preliminar y muchas áreas necesitan mejoras y refinamientos continuos. Agradecemos los comentarios y sugerencias de todos los desarrolladores y usuarios. La nueva aplicación de escritorio ahora está dirigida a una amplia gama de usuarios, mientras que las funciones avanzadas relacionadas con los desarrolladores se pueden habilitar en la configuración. Se espera que las características del producto y las API de complementos de DeepSeek Harness continúen con una rápida iteración y evolución, y se estabilicen gradualmente con el tiempo.\n\nEsperamos explorar los límites de la inteligencia junto con usuarios y desarrolladores de todo el mundo, basándose en una infraestructura de código abierto, reutilizable y componible. Invitamos a todos a dar vida a sus ideas con DeepSeek Harness y participar en la comunidad para enriquecer el ecosistema de complementos.",
|
|
4121
|
+
welcomeContinue: "Continuar",
|
|
4122
|
+
welcomeError: "El reconocimiento no se pudo guardar. Por favor inténtalo de nuevo.",
|
|
4123
|
+
onboardingTitle: "Agregue una clave API para comenzar",
|
|
4124
|
+
onboardingDescription: "Configure el proveedor oficial DeepSeek para comenzar a construir.",
|
|
4125
|
+
onboardingLater: "Configurar más tarde",
|
|
4126
|
+
onboardingSave: "Guardar y continuar",
|
|
4127
|
+
onboardingSaving: "Guardando…",
|
|
4128
|
+
keyRequired: "Ingrese una clave API para continuar."
|
|
4129
|
+
};
|
|
4130
|
+
/** French dictionary, checked against the English keys. */
|
|
4131
|
+
const fr = {
|
|
4132
|
+
nav: "Modèles",
|
|
4133
|
+
deepSeekAccount: "Compte DeepSeek",
|
|
4134
|
+
title: "Modèles",
|
|
4135
|
+
intro: "Entrez vos clés API pour utiliser les modèles des fournisseurs suivants.",
|
|
4136
|
+
edit: "Modifier",
|
|
4137
|
+
editProvider: "Modifier {provider}",
|
|
4138
|
+
remove: "Supprimer",
|
|
4139
|
+
removeProvider: "Supprimer {provider}",
|
|
4140
|
+
deleteTitle: "Supprimer {provider}\xA0?",
|
|
4141
|
+
deleteDescription: "La suppression de {provider} supprime sa configuration. Tout identifiant qu'il utilise est géré ailleurs et sera conservé.",
|
|
4142
|
+
deleteDescriptionWithCredential: "La suppression de {provider} supprime sa configuration et la clé API stockée.",
|
|
4143
|
+
deleteConfirm: "Supprimer {provider}",
|
|
4144
|
+
deleting: "Suppression de {provider}…",
|
|
4145
|
+
add: "Ajouter un fournisseur de modèles",
|
|
4146
|
+
addMode: "Comment ajouter",
|
|
4147
|
+
addCatalog: "Fournisseur de modèles tiers",
|
|
4148
|
+
addCustom: "Modèle personnalisé API",
|
|
4149
|
+
addCatalogHint: "Choisissez OpenAI, Anthropic, Kimi ou un autre fournisseur dans le catalogue intégré et entrez sa clé API.",
|
|
4150
|
+
addCustomHint: "Connectez un relais, un serveur auto-hébergé ou tout autre point de terminaison compatible OpenAI ou Anthropic par son URL de base, son protocole et ses modèles.",
|
|
4151
|
+
addCatalogExhausted: "Chaque fournisseur de catalogue est déjà configuré.",
|
|
4152
|
+
addCustomUnavailable: "Aucun protocole API n'est disponible à déclarer.",
|
|
4153
|
+
provider: "Fournisseur",
|
|
4154
|
+
close: "Fermer",
|
|
4155
|
+
cancel: "Annuler",
|
|
4156
|
+
apply: "Appliquer",
|
|
4157
|
+
applying: "Application…",
|
|
4158
|
+
savedProvider: "{provider} enregistré.",
|
|
4159
|
+
credentialConfigured: "Clé API configurée",
|
|
4160
|
+
credentialMissing: "Clé API manquante",
|
|
4161
|
+
accountSignedIn: "Connecté",
|
|
4162
|
+
readOnly: "Le document de paramètres est en lecture seule dans ce déploiement.",
|
|
4163
|
+
loadFailed: "Le chargement du répertoire du fournisseur a échoué",
|
|
4164
|
+
conflict: "Quelqu'un d'autre a modifié ces paramètres alors que cette carte était ouverte. Fermez-le et rouvrez-le pour modifier les valeurs actuelles.",
|
|
4165
|
+
retry: "Réessayer",
|
|
4166
|
+
keyInput: "Clé API",
|
|
4167
|
+
keyReveal: "Afficher le secret",
|
|
4168
|
+
keyHide: "Cacher le secret",
|
|
4169
|
+
keyPlaceholder: "Entrez votre clé API",
|
|
4170
|
+
keyPlaceholderFallback: "Laissez vide pour utiliser env comme authentification ({hint})",
|
|
4171
|
+
keyPlaceholderSaved: "Laissez vide pour utiliser les informations d'identification enregistrées",
|
|
4172
|
+
keyFallbackMissing: "Var d'environnement non détectée. Entrez une clé API ou configurez {hint} dans votre environnement.",
|
|
4173
|
+
keyFallbackDetected: "Var d'environnement détectée. ({hint})",
|
|
4174
|
+
keyFallbackDetectedHidden: "Var d'environnement détectée.",
|
|
4175
|
+
keyFallbackUnchecked: "Le statut des qualifications en environnement n’a pas été confirmé.",
|
|
4176
|
+
keyHelp: "Les informations d'identification enregistrées sont utilisées en premier. Solutions de secours d’environnement affichées ici, dans l’ordre\xA0: {env}. Les sources sont l'environnement de lancement, $cwd/.env, puis $DSH_HOME/.env.",
|
|
4177
|
+
authHelp: "Détails d'authentification",
|
|
4178
|
+
customized: "Paramètres personnalisés",
|
|
4179
|
+
baseUrl: "URL de base",
|
|
4180
|
+
baseUrlDefault: "Aucun point de terminaison par défaut",
|
|
4181
|
+
baseUrlEnvironment: "Configuration du point de terminaison du fournisseur\xA0: {env}",
|
|
4182
|
+
baseUrlConfigured: "Point de terminaison configuré par le fournisseur",
|
|
4183
|
+
baseUrlPlaceholder: "{url}",
|
|
4184
|
+
deepSeekBaseUrl: "https://api.deepseek.com/anthropic (par défaut, DEEPSEEK_BASE_URL est utilisé)",
|
|
4185
|
+
deepSeekEndpointHint: "Utilisez un point de terminaison API compatible avec Anthropic Messages.",
|
|
4186
|
+
models: "Modèles",
|
|
4187
|
+
modelsInherited: "Utilisation des valeurs par défaut de l'adaptateur",
|
|
4188
|
+
modelsCustomized: "Catalogue de modèles personnalisés",
|
|
4189
|
+
resetModels: "Restaurer les valeurs par défaut",
|
|
4190
|
+
model: "Modèle",
|
|
4191
|
+
modelId: "ID du modèle",
|
|
4192
|
+
modelName: "Nom d'affichage",
|
|
4193
|
+
modelNamePlaceholder: "Utilise l'ID du modèle lorsqu'il est vide",
|
|
4194
|
+
contextWindow: "Fenêtre contextuelle",
|
|
4195
|
+
contextWindowPlaceholder: "Utilise la valeur par défaut du fournisseur",
|
|
4196
|
+
maxTokens: "Jetons de sortie maximum",
|
|
4197
|
+
maxTokensPlaceholder: "Utilise la valeur par défaut du fournisseur",
|
|
4198
|
+
modelAdvanced: "Options de modèle",
|
|
4199
|
+
modelInputTypes: "Types d'entrée",
|
|
4200
|
+
modelInputText: "Texte",
|
|
4201
|
+
modelInputImage: "Images",
|
|
4202
|
+
modelReasoning: "Niveaux de raisonnement",
|
|
4203
|
+
modelReasoningLevel: "Niveau",
|
|
4204
|
+
modelReasoningValue: "Valeur API",
|
|
4205
|
+
modelReasoningHelp: "À propos des niveaux de raisonnement",
|
|
4206
|
+
modelReasoningHelpText: "La valeur API est envoyée dans le champ d’effort de raisonnement de la requête, comme reasoning_effort chez OpenAI. Par défaut, elle correspond au nom du niveau ; si la documentation API du fournisseur du modèle indique une autre valeur, utilisez-la. Désactivé coupe le raisonnement et ne nécessite aucune valeur ; toute valeur déjà enregistrée dans la configuration est conservée et envoyée.",
|
|
4207
|
+
modelReasoningNeedsLevel: "Ajoutez au moins un niveau en plus de Désactivé ou désactivez les niveaux de raisonnement.",
|
|
4208
|
+
modelReasoningValueRequired: "Chaque niveau autre que Off nécessite une valeur API et aucune valeur ne peut être vide.",
|
|
4209
|
+
modelReasoningAdd: "Ajouter un niveau",
|
|
4210
|
+
modelReasoningRemove: "Supprimer le niveau",
|
|
4211
|
+
modelReasoningOffValuePlaceholder: "Désactive le raisonnement",
|
|
4212
|
+
addModel: "Ajouter un modèle",
|
|
4213
|
+
removeModel: "Supprimer le modèle",
|
|
4214
|
+
reorderModel: "Réorganiser le modèle",
|
|
4215
|
+
reorderModelHelp: "Faites glisser pour réorganiser ou utilisez les touches fléchées haut et bas.",
|
|
4216
|
+
modelsEmpty: "Aucun modèle ne sera affiché dans le sélecteur. Les identifiants non répertoriés peuvent toujours être envoyés directement.",
|
|
4217
|
+
keyBlank: "Saisissez la clé API, ou laissez le champ vide pour conserver celle stockée.",
|
|
4218
|
+
keyBlankNew: "Saisissez la clé API ou laissez le champ vide si ce fournisseur s'authentifie d'une autre manière.",
|
|
4219
|
+
keyIllegalCharacters: "Cette clé API n'est pas dans un format valide. Veuillez le vérifier.",
|
|
4220
|
+
modelIdRequired: "L’ID du modèle est requis.",
|
|
4221
|
+
modelIdDuplicate: "L'ID du modèle doit être unique.",
|
|
4222
|
+
modelNameInvalid: "Le nom d’affichage ne peut pas être vide.",
|
|
4223
|
+
modelContextInvalid: "La fenêtre contextuelle doit être un nombre positif, comme 131072, 256K ou 1M.",
|
|
4224
|
+
modelMaxTokensInvalid: "Le nombre maximum de jetons de sortie doit être un nombre positif, comme 8192, 64K ou 1M.",
|
|
4225
|
+
advancedHint: "D'autres champs se trouvent dans cordis.patch.yml\xA0; modifiez cette section directement.",
|
|
4226
|
+
modelCapacityInvalid: "Une capacité doit être un nombre, éventuellement suivi du suffixe K ou M.",
|
|
4227
|
+
modelDuplicate: "Chaque ID de modèle peut apparaître une fois.",
|
|
4228
|
+
fetchModels: "Récupérer les modèles disponibles",
|
|
4229
|
+
fetching: "Demander au fournisseur…",
|
|
4230
|
+
fetchNeedsBaseUrl: "Entrez d'abord l'URL de base, puis récupérez-la.",
|
|
4231
|
+
fetchEmpty: "Le fournisseur n’a répertorié aucun modèle. Ajoutez-les à la main.",
|
|
4232
|
+
fetchTitle: "Choisir des modèles",
|
|
4233
|
+
fetchDescription: "Ce sont les modèles disponibles chez ce fournisseur. Les modèles cochés constituent la liste.",
|
|
4234
|
+
fetchSearch: "Rechercher des modèles",
|
|
4235
|
+
fetchNoMatches: "Aucun modèle correspondant.",
|
|
4236
|
+
fetchSelectAll: "Tout sélectionner",
|
|
4237
|
+
fetchDeselectAll: "Tout désélectionner",
|
|
4238
|
+
fetchAdopt: "Mettre à jour la liste",
|
|
4239
|
+
fetchKeepOne: "Gardez au moins un modèle coché.",
|
|
4240
|
+
customTag: "Personnalisé",
|
|
4241
|
+
customRoute: "Identifiant du fournisseur",
|
|
4242
|
+
customRouteHint: "Identifiant minuscule, commençant par une lettre, qui nomme de manière unique ce fournisseur dans les demandes et comme nom d'identification.",
|
|
4243
|
+
customRouteInvalid: "Commencez par une lettre minuscule\xA0; puis des lettres minuscules, des chiffres et des tirets.",
|
|
4244
|
+
customRouteTaken: "Un fournisseur utilise déjà cet identifiant.",
|
|
4245
|
+
customDisplayName: "Nom d'affichage",
|
|
4246
|
+
customApi: "Protocole API",
|
|
4247
|
+
customApiUnset: "Non sélectionné",
|
|
4248
|
+
protocolOpenAiCompletions: "Achèvements du chat OpenAI",
|
|
4249
|
+
protocolOpenAiResponses: "Réponses OpenAI",
|
|
4250
|
+
protocolAnthropicMessages: "Messages anthropiques",
|
|
4251
|
+
customNeedsBaseUrl: "Un fournisseur personnalisé a besoin d'une URL de base.",
|
|
4252
|
+
customBaseUrlInvalid: "Saisissez une URL HTTP ou HTTPS valide.",
|
|
4253
|
+
customNeedsModels: "Un fournisseur personnalisé a besoin d'au moins un modèle.",
|
|
4254
|
+
customBaseUrlPlaceholder: "https://gateway.example/v1",
|
|
4255
|
+
customAnthropicBaseUrlPlaceholder: "https://gateway.example",
|
|
4256
|
+
settingsPathUnresolvable: "chemin des paramètres insolubles",
|
|
4257
|
+
create: "Créer un fournisseur",
|
|
4258
|
+
creating: "Création…",
|
|
4259
|
+
welcomeTitle: "Avis d'aperçu",
|
|
4260
|
+
welcomeBody: "DeepSeek Harness 0.2 est toujours en version préliminaire et de nombreux domaines nécessitent une amélioration et un perfectionnement continus. Nous apprécions les commentaires et suggestions de tous les développeurs et utilisateurs. La nouvelle application de bureau cible désormais un large éventail d'utilisateurs, tandis que les fonctionnalités avancées liées aux développeurs peuvent être activées dans les paramètres. Les fonctionnalités du produit et les API de plug-in de DeepSeek Harness devraient poursuivre leurs itérations et leur évolution rapides, et se stabiliseront progressivement au fil du temps. \n\nNous sommes impatients d'explorer les limites de l'intelligence avec les utilisateurs et les développeurs du monde entier, en nous appuyant sur une infrastructure open source, réutilisable et composable. Nous invitons chacun à donner vie à ses idées avec DeepSeek Harness et à participer à la communauté pour enrichir l'écosystème des plugins.",
|
|
4261
|
+
welcomeContinue: "Continuer",
|
|
4262
|
+
welcomeError: "L'accusé de réception n'a pas pu être enregistré. Veuillez réessayer.",
|
|
4263
|
+
onboardingTitle: "Ajoutez une clé API pour commencer",
|
|
4264
|
+
onboardingDescription: "Configurez le fournisseur officiel DeepSeek pour commencer la construction.",
|
|
4265
|
+
onboardingLater: "Configurer plus tard",
|
|
4266
|
+
onboardingSave: "Enregistrer et continuer",
|
|
4267
|
+
onboardingSaving: "Sauvegarde…",
|
|
4268
|
+
keyRequired: "Entrez une clé API pour continuer."
|
|
4269
|
+
};
|
|
4270
|
+
/** German dictionary, checked against the English keys. */
|
|
4271
|
+
const de = {
|
|
4272
|
+
nav: "Modelle",
|
|
4273
|
+
deepSeekAccount: "DeepSeek-Konto",
|
|
4274
|
+
title: "Modelle",
|
|
4275
|
+
intro: "Geben Sie Ihre API-Schlüssel ein, um Modelle der folgenden Anbieter zu verwenden.",
|
|
4276
|
+
edit: "Bearbeiten",
|
|
4277
|
+
editProvider: "Bearbeiten Sie {provider}",
|
|
4278
|
+
remove: "Löschen",
|
|
4279
|
+
removeProvider: "Löschen Sie {provider}",
|
|
4280
|
+
deleteTitle: "{provider} löschen?",
|
|
4281
|
+
deleteDescription: "Durch das Löschen von {provider} wird seine Konfiguration entfernt. Alle verwendeten Anmeldeinformationen werden an anderer Stelle verwaltet und aufbewahrt.",
|
|
4282
|
+
deleteDescriptionWithCredential: "Durch das Löschen von {provider} werden seine Konfiguration und der gespeicherte API-Schlüssel entfernt.",
|
|
4283
|
+
deleteConfirm: "Löschen Sie {provider}",
|
|
4284
|
+
deleting: "{provider} wird gelöscht…",
|
|
4285
|
+
add: "Modellanbieter hinzufügen",
|
|
4286
|
+
addMode: "So fügen Sie hinzu",
|
|
4287
|
+
addCatalog: "Drittanbieter von Modellen",
|
|
4288
|
+
addCustom: "Kundenspezifisches Modell API",
|
|
4289
|
+
addCatalogHint: "Wählen Sie OpenAI, Anthropic, Kimi oder einen anderen Anbieter aus dem integrierten Katalog aus und geben Sie den API-Schlüssel ein.",
|
|
4290
|
+
addCustomHint: "Verbinden Sie ein Relay, einen selbst gehosteten Server oder einen anderen OpenAI- oder Anthropic-kompatiblen Endpunkt über seine Basis-URL, sein Protokoll und seine Modelle.",
|
|
4291
|
+
addCatalogExhausted: "Jeder Kataloganbieter ist bereits konfiguriert.",
|
|
4292
|
+
addCustomUnavailable: "Es ist kein API-Protokoll zur Deklaration verfügbar.",
|
|
4293
|
+
provider: "Anbieter",
|
|
4294
|
+
close: "Schließen",
|
|
4295
|
+
cancel: "Abbrechen",
|
|
4296
|
+
apply: "Anwenden",
|
|
4297
|
+
applying: "Wird angewendet…",
|
|
4298
|
+
savedProvider: "Gespeichert {provider}.",
|
|
4299
|
+
credentialConfigured: "API-Schlüssel konfiguriert",
|
|
4300
|
+
credentialMissing: "API-Schlüssel fehlt",
|
|
4301
|
+
accountSignedIn: "Angemeldet",
|
|
4302
|
+
readOnly: "Das Einstellungsdokument ist in dieser Bereitstellung schreibgeschützt.",
|
|
4303
|
+
loadFailed: "Das Laden des Anbieterverzeichnisses ist fehlgeschlagen",
|
|
4304
|
+
conflict: "Jemand anderes hat diese Einstellungen geändert, während diese Karte geöffnet war. Schließen Sie es und öffnen Sie es erneut, um die aktuellen Werte zu bearbeiten.",
|
|
4305
|
+
retry: "Erneut versuchen",
|
|
4306
|
+
keyInput: "API-Schlüssel",
|
|
4307
|
+
keyReveal: "Geheimnis zeigen",
|
|
4308
|
+
keyHide: "Geheimnis verbergen",
|
|
4309
|
+
keyPlaceholder: "Geben Sie Ihren API-Schlüssel ein",
|
|
4310
|
+
keyPlaceholderFallback: "Lassen Sie das Feld leer, um env als Authentifizierung zu verwenden ({hint})",
|
|
4311
|
+
keyPlaceholderSaved: "Lassen Sie das Feld leer, um gespeicherte Anmeldeinformationen zu verwenden",
|
|
4312
|
+
keyFallbackMissing: "Umgebungsvariable nicht erkannt. Geben Sie einen API-Schlüssel ein oder konfigurieren Sie {hint} in Ihrer Umgebung.",
|
|
4313
|
+
keyFallbackDetected: "Umgebungsvariable erkannt. ({hint})",
|
|
4314
|
+
keyFallbackDetectedHidden: "Umgebungsvariable erkannt.",
|
|
4315
|
+
keyFallbackUnchecked: "Der Status der Umweltberechtigung wurde nicht bestätigt.",
|
|
4316
|
+
keyHelp: "Gespeicherte Anmeldeinformationen werden zuerst verwendet. Hier werden Umgebungs-Fallbacks in der Reihenfolge angezeigt: {env}. Quellen sind die Startumgebung, $cwd/.env und dann $DSH_HOME/.env.",
|
|
4317
|
+
authHelp: "Authentifizierungsdetails",
|
|
4318
|
+
customized: "Benutzerdefinierte Einstellungen",
|
|
4319
|
+
baseUrl: "Basis-URL",
|
|
4320
|
+
baseUrlDefault: "Kein Standardendpunkt",
|
|
4321
|
+
baseUrlEnvironment: "Konfiguration des Anbieterendpunkts: {env}",
|
|
4322
|
+
baseUrlConfigured: "Vom Anbieter konfigurierter Endpunkt",
|
|
4323
|
+
baseUrlPlaceholder: "{url}",
|
|
4324
|
+
deepSeekBaseUrl: "https://api.deepseek.com/anthropic (Standardmäßig wird DEEPSEEK_BASE_URL verwendet)",
|
|
4325
|
+
deepSeekEndpointHint: "Verwenden Sie einen API-Endpunkt, der mit Anthropic Messages kompatibel ist.",
|
|
4326
|
+
models: "Modelle",
|
|
4327
|
+
modelsInherited: "Verwendung der Adapterstandards",
|
|
4328
|
+
modelsCustomized: "Maßgeschneiderter Modellkatalog",
|
|
4329
|
+
resetModels: "Standardeinstellungen wiederherstellen",
|
|
4330
|
+
model: "Modell",
|
|
4331
|
+
modelId: "Modell-ID",
|
|
4332
|
+
modelName: "Anzeigename",
|
|
4333
|
+
modelNamePlaceholder: "Verwendet die Modell-ID, wenn sie leer ist",
|
|
4334
|
+
contextWindow: "Kontextfenster",
|
|
4335
|
+
contextWindowPlaceholder: "Verwendet die Standardeinstellung des Anbieters",
|
|
4336
|
+
maxTokens: "Maximale Anzahl ausgegebener Token",
|
|
4337
|
+
maxTokensPlaceholder: "Verwendet die Standardeinstellung des Anbieters",
|
|
4338
|
+
modelAdvanced: "Modelloptionen",
|
|
4339
|
+
modelInputTypes: "Eingabetypen",
|
|
4340
|
+
modelInputText: "Text",
|
|
4341
|
+
modelInputImage: "Bild",
|
|
4342
|
+
modelReasoning: "Argumentationsebenen",
|
|
4343
|
+
modelReasoningLevel: "Ebene",
|
|
4344
|
+
modelReasoningValue: "API-Wert",
|
|
4345
|
+
modelReasoningHelp: "Über Argumentationsebenen",
|
|
4346
|
+
modelReasoningHelpText: "Der API-Wert wird im Feld für den Denkaufwand der Anfrage gesendet, etwa reasoning_effort bei OpenAI. Standardmäßig wird der Stufenname verwendet; gibt die API-Dokumentation des Modellanbieters einen anderen Wert vor, verwenden Sie diesen. Aus deaktiviert das Denken und benötigt keinen Wert; ein bereits konfigurierter Wert bleibt erhalten und wird gesendet.",
|
|
4347
|
+
modelReasoningNeedsLevel: "Fügen Sie neben „Aus“ mindestens eine Ebene hinzu oder deaktivieren Sie die Argumentationsebenen.",
|
|
4348
|
+
modelReasoningValueRequired: "Jede Ebene außer Off benötigt einen API-Wert und kein Wert darf leer sein.",
|
|
4349
|
+
modelReasoningAdd: "Ebene hinzufügen",
|
|
4350
|
+
modelReasoningRemove: "Ebene löschen",
|
|
4351
|
+
modelReasoningOffValuePlaceholder: "Schaltet das Denken aus",
|
|
4352
|
+
addModel: "Modell hinzufügen",
|
|
4353
|
+
removeModel: "Modell löschen",
|
|
4354
|
+
reorderModel: "Modell neu anordnen",
|
|
4355
|
+
reorderModelHelp: "Ziehen Sie, um die Reihenfolge neu anzuordnen, oder verwenden Sie die Aufwärts- und Abwärtspfeiltasten.",
|
|
4356
|
+
modelsEmpty: "Im Selektor werden keine Modelle angezeigt. Nicht gelistete Ausweise können weiterhin direkt versendet werden.",
|
|
4357
|
+
keyBlank: "Geben Sie den API-Schlüssel ein oder lassen Sie das Feld leer, um den gespeicherten Schlüssel beizubehalten.",
|
|
4358
|
+
keyBlankNew: "Geben Sie den API-Schlüssel ein oder lassen Sie das Feld leer, wenn dieser Anbieter auf andere Weise authentifiziert.",
|
|
4359
|
+
keyIllegalCharacters: "Dieser API-Schlüssel hat kein gültiges Format. Bitte überprüfen Sie es.",
|
|
4360
|
+
modelIdRequired: "Modell-ID ist erforderlich.",
|
|
4361
|
+
modelIdDuplicate: "Die Modell-ID muss eindeutig sein.",
|
|
4362
|
+
modelNameInvalid: "Der Anzeigename darf nicht leer sein.",
|
|
4363
|
+
modelContextInvalid: "Das Kontextfenster muss eine positive Zahl sein, z. B. 131072, 256K oder 1M.",
|
|
4364
|
+
modelMaxTokensInvalid: "Die maximale Anzahl an Ausgabetokens muss eine positive Zahl sein, z.\xA0B. 8192, 64K oder 1M.",
|
|
4365
|
+
advancedHint: "Andere Felder befinden sich in cordis.patch.yml; Bearbeiten Sie diesen Abschnitt direkt.",
|
|
4366
|
+
modelCapacityInvalid: "Eine Kapazität muss eine Zahl sein, optional mit dem Suffix K oder M.",
|
|
4367
|
+
modelDuplicate: "Jede Modell-ID darf einmal vorkommen.",
|
|
4368
|
+
fetchModels: "Verfügbare Modelle abrufen",
|
|
4369
|
+
fetching: "Den Anbieter fragen...",
|
|
4370
|
+
fetchNeedsBaseUrl: "Geben Sie zuerst die Basis-URL ein und rufen Sie sie dann ab.",
|
|
4371
|
+
fetchEmpty: "Der Anbieter listete keine Modelle auf. Fügen Sie sie von Hand hinzu.",
|
|
4372
|
+
fetchTitle: "Wählen Sie Modelle",
|
|
4373
|
+
fetchDescription: "Dies sind die Modelle, die dieser Anbieter zur Verfügung hat. Geprüfte Modelle bilden die Liste.",
|
|
4374
|
+
fetchSearch: "Modelle suchen",
|
|
4375
|
+
fetchNoMatches: "Keine passenden Modelle.",
|
|
4376
|
+
fetchSelectAll: "Alles auswählen",
|
|
4377
|
+
fetchDeselectAll: "Alle abwählen",
|
|
4378
|
+
fetchAdopt: "Liste aktualisieren",
|
|
4379
|
+
fetchKeepOne: "Lassen Sie mindestens ein Modell überprüft.",
|
|
4380
|
+
customTag: "Benutzerdefiniert",
|
|
4381
|
+
customRoute: "Anbieter-ID",
|
|
4382
|
+
customRouteHint: "Bezeichner in Kleinbuchstaben, beginnend mit einem Buchstaben, der diesen Anbieter in Anfragen und als Anmeldeinformationsname eindeutig benennt.",
|
|
4383
|
+
customRouteInvalid: "Beginnen Sie mit einem Kleinbuchstaben; dann Kleinbuchstaben, Ziffern und Bindestriche.",
|
|
4384
|
+
customRouteTaken: "Ein Anbieter verwendet diese ID bereits.",
|
|
4385
|
+
customDisplayName: "Anzeigename",
|
|
4386
|
+
customApi: "API-Protokoll",
|
|
4387
|
+
customApiUnset: "Nicht ausgewählt",
|
|
4388
|
+
protocolOpenAiCompletions: "OpenAI-Chat-Abschlüsse",
|
|
4389
|
+
protocolOpenAiResponses: "OpenAI-Antworten",
|
|
4390
|
+
protocolAnthropicMessages: "Anthropische Botschaften",
|
|
4391
|
+
customNeedsBaseUrl: "Ein benutzerdefinierter Anbieter benötigt eine Basis-URL.",
|
|
4392
|
+
customBaseUrlInvalid: "Geben Sie eine gültige HTTP- oder HTTPS-URL ein.",
|
|
4393
|
+
customNeedsModels: "Ein benutzerdefinierter Anbieter benötigt mindestens ein Modell.",
|
|
4394
|
+
customBaseUrlPlaceholder: "https://gateway.example/v1",
|
|
4395
|
+
customAnthropicBaseUrlPlaceholder: "https://gateway.example",
|
|
4396
|
+
settingsPathUnresolvable: "Unauflösbarer Einstellungspfad",
|
|
4397
|
+
create: "Anbieter erstellen",
|
|
4398
|
+
creating: "Erstellen…",
|
|
4399
|
+
welcomeTitle: "Vorschauhinweis",
|
|
4400
|
+
welcomeBody: "DeepSeek Harness 0.2 befindet sich noch in der Vorschau und viele Bereiche müssen weiter verbessert und verfeinert werden. Wir freuen uns über Feedback und Vorschläge aller Entwickler und Benutzer. Die neue Desktop-App richtet sich nun an ein breites Nutzerspektrum, während entwicklerbezogene erweiterte Funktionen in den Einstellungen aktiviert werden können. Es wird erwartet, dass die Produktfunktionen und Plugin-APIs von DeepSeek Harness ihre schnelle Iteration und Weiterentwicklung fortsetzen und sich im Laufe der Zeit allmählich stabilisieren. Wir heißen jeden willkommen, seine Ideen mit DeepSeek Harness zum Leben zu erwecken und sich an der Community zu beteiligen, um das Plugin-Ökosystem zu bereichern.",
|
|
4401
|
+
welcomeContinue: "Weiter",
|
|
4402
|
+
welcomeError: "Die Bestätigung konnte nicht gespeichert werden. Bitte versuchen Sie es erneut.",
|
|
4403
|
+
onboardingTitle: "Fügen Sie einen API-Schlüssel hinzu, um loszulegen",
|
|
4404
|
+
onboardingDescription: "Konfigurieren Sie den offiziellen DeepSeek-Anbieter, um mit der Erstellung zu beginnen.",
|
|
4405
|
+
onboardingLater: "Später konfigurieren",
|
|
4406
|
+
onboardingSave: "Speichern und fortfahren",
|
|
4407
|
+
onboardingSaving: "Speichern…",
|
|
4408
|
+
keyRequired: "Geben Sie einen API-Schlüssel ein, um fortzufahren."
|
|
4409
|
+
};
|
|
4410
|
+
/** Russian dictionary, checked against the English keys. */
|
|
4411
|
+
const ru = {
|
|
4412
|
+
nav: "Модели",
|
|
4413
|
+
deepSeekAccount: "DeepSeek Аккаунт",
|
|
4414
|
+
title: "Модели",
|
|
4415
|
+
intro: "Введите ключи API, чтобы использовать модели следующих поставщиков.",
|
|
4416
|
+
edit: "Редактировать",
|
|
4417
|
+
editProvider: "Редактировать {provider}",
|
|
4418
|
+
remove: "Удалить",
|
|
4419
|
+
removeProvider: "Удалить {provider}",
|
|
4420
|
+
deleteTitle: "Удалить {provider}?",
|
|
4421
|
+
deleteDescription: "Удаление {provider} удаляет его конфигурацию. Любые учетные данные, которые он использует, управляются где-то еще и будут сохранены.",
|
|
4422
|
+
deleteDescriptionWithCredential: "Удаление {provider} удаляет его конфигурацию и сохраненный ключ API.",
|
|
4423
|
+
deleteConfirm: "Удалить {provider}",
|
|
4424
|
+
deleting: "Удаление {provider}…",
|
|
4425
|
+
add: "Добавить поставщика моделей",
|
|
4426
|
+
addMode: "Как добавить",
|
|
4427
|
+
addCatalog: "Сторонний поставщик моделей",
|
|
4428
|
+
addCustom: "Пользовательская модель API",
|
|
4429
|
+
addCatalogHint: "Выберите OpenAI, Anthropic, Kimi или другого провайдера из встроенного каталога и введите его ключ API.",
|
|
4430
|
+
addCustomHint: "Подключите реле, автономный сервер или любую другую конечную точку, совместимую с OpenAI или Anthropic, по ее базовому URL-адресу, протоколу и модели.",
|
|
4431
|
+
addCatalogExhausted: "Каждый поставщик каталога уже настроен.",
|
|
4432
|
+
addCustomUnavailable: "Протокол API недоступен для объявления.",
|
|
4433
|
+
provider: "Поставщик",
|
|
4434
|
+
close: "Закрыть",
|
|
4435
|
+
cancel: "Отмена",
|
|
4436
|
+
apply: "Применить",
|
|
4437
|
+
applying: "Применение…",
|
|
4438
|
+
savedProvider: "Сохранено {provider}.",
|
|
4439
|
+
credentialConfigured: "Ключ API настроен",
|
|
4440
|
+
credentialMissing: "Ключ API отсутствует",
|
|
4441
|
+
accountSignedIn: "Вошёл в систему",
|
|
4442
|
+
readOnly: "В этом развертывании документ настроек доступен только для чтения.",
|
|
4443
|
+
loadFailed: "Не удалось загрузить каталог поставщика",
|
|
4444
|
+
conflict: "Кто-то другой изменил эти настройки, пока эта карточка была открыта. Закройте его и откройте снова, чтобы редактировать текущие значения.",
|
|
4445
|
+
retry: "Повторить",
|
|
4446
|
+
keyInput: "Ключ API",
|
|
4447
|
+
keyReveal: "Показать секрет",
|
|
4448
|
+
keyHide: "Скрыть секрет",
|
|
4449
|
+
keyPlaceholder: "Введите свой ключ API",
|
|
4450
|
+
keyPlaceholderFallback: "Оставьте пустым, чтобы использовать env в качестве аутентификации ({hint})",
|
|
4451
|
+
keyPlaceholderSaved: "Оставьте поле пустым, чтобы использовать сохраненные учетные данные.",
|
|
4452
|
+
keyFallbackMissing: "Переменная Env не обнаружена. Введите ключ API или настройте {hint} в своей среде.",
|
|
4453
|
+
keyFallbackDetected: "Обнаружена переменная Env. ({hint})",
|
|
4454
|
+
keyFallbackDetectedHidden: "Обнаружена переменная Env.",
|
|
4455
|
+
keyFallbackUnchecked: "Статус экологической сертификации не подтвержден.",
|
|
4456
|
+
keyHelp: "Сохраненные учетные данные используются в первую очередь. Здесь показаны резервные варианты среды в порядке: {env}. Источниками являются среда запуска, $cwd/.env, затем $DSH_HOME/.env.",
|
|
4457
|
+
authHelp: "Детали аутентификации",
|
|
4458
|
+
customized: "Индивидуальные настройки",
|
|
4459
|
+
baseUrl: "Базовый URL",
|
|
4460
|
+
baseUrlDefault: "Нет конечной точки по умолчанию",
|
|
4461
|
+
baseUrlEnvironment: "Конфигурация конечной точки поставщика: {env}.",
|
|
4462
|
+
baseUrlConfigured: "Конечная точка, настроенная поставщиком",
|
|
4463
|
+
baseUrlPlaceholder: "{url}",
|
|
4464
|
+
deepSeekBaseUrl: "https://api.deepseek.com/anthropic (по умолчанию используется DEEPSEEK_BASE_URL)",
|
|
4465
|
+
deepSeekEndpointHint: "Используйте конечную точку API, совместимую с антропными сообщениями.",
|
|
4466
|
+
models: "Модели",
|
|
4467
|
+
modelsInherited: "Использование настроек адаптера по умолчанию",
|
|
4468
|
+
modelsCustomized: "Индивидуальный каталог моделей",
|
|
4469
|
+
resetModels: "Восстановить настройки по умолчанию",
|
|
4470
|
+
model: "Модель",
|
|
4471
|
+
modelId: "Идентификатор модели",
|
|
4472
|
+
modelName: "Отображаемое имя",
|
|
4473
|
+
modelNamePlaceholder: "Использует идентификатор модели, когда он пуст",
|
|
4474
|
+
contextWindow: "Контекстное окно",
|
|
4475
|
+
contextWindowPlaceholder: "Использует поставщика по умолчанию",
|
|
4476
|
+
maxTokens: "Максимальное количество выходных токенов",
|
|
4477
|
+
maxTokensPlaceholder: "Использует поставщика по умолчанию",
|
|
4478
|
+
modelAdvanced: "Варианты модели",
|
|
4479
|
+
modelInputTypes: "Типы ввода",
|
|
4480
|
+
modelInputText: "Текст",
|
|
4481
|
+
modelInputImage: "Изображение",
|
|
4482
|
+
modelReasoning: "Уровни рассуждения",
|
|
4483
|
+
modelReasoningLevel: "Уровень",
|
|
4484
|
+
modelReasoningValue: "Значение API",
|
|
4485
|
+
modelReasoningHelp: "Об уровнях рассуждения",
|
|
4486
|
+
modelReasoningHelpText: "Значение API передаётся в поле уровня рассуждений запроса, например reasoning_effort у OpenAI. По умолчанию используется название уровня; если документация API поставщика модели указывает другое значение, используйте его. Выкл. отключает рассуждения и не требует значения; уже записанное в конфигурации значение сохраняется и отправляется.",
|
|
4487
|
+
modelReasoningNeedsLevel: "Добавьте хотя бы один уровень помимо «Выкл.» или отключите уровни рассуждения.",
|
|
4488
|
+
modelReasoningValueRequired: "Для каждого уровня, кроме Off, требуется значение API, и ни одно значение не может быть пустым.",
|
|
4489
|
+
modelReasoningAdd: "Добавить уровень",
|
|
4490
|
+
modelReasoningRemove: "Удалить уровень",
|
|
4491
|
+
modelReasoningOffValuePlaceholder: "Отключает рассуждения",
|
|
4492
|
+
addModel: "Добавить модель",
|
|
4493
|
+
removeModel: "Удалить модель",
|
|
4494
|
+
reorderModel: "Изменить порядок модели",
|
|
4495
|
+
reorderModelHelp: "Перетащите, чтобы изменить порядок, или используйте клавиши со стрелками вверх и вниз.",
|
|
4496
|
+
modelsEmpty: "В селекторе не будут показаны модели. Неуказанные идентификаторы по-прежнему можно отправлять напрямую.",
|
|
4497
|
+
keyBlank: "Введите ключ API или оставьте поле пустым, чтобы сохранить сохраненный.",
|
|
4498
|
+
keyBlankNew: "Введите ключ API или оставьте поле пустым, если этот провайдер выполняет аутентификацию другим способом.",
|
|
4499
|
+
keyIllegalCharacters: "Этот ключ API имеет недопустимый формат. Пожалуйста, проверьте это.",
|
|
4500
|
+
modelIdRequired: "Требуется идентификатор модели.",
|
|
4501
|
+
modelIdDuplicate: "Идентификатор модели должен быть уникальным.",
|
|
4502
|
+
modelNameInvalid: "Отображаемое имя не может быть пустым.",
|
|
4503
|
+
modelContextInvalid: "Контекстное окно должно иметь положительное значение, например 131072, 256K или 1M.",
|
|
4504
|
+
modelMaxTokensInvalid: "Максимальное количество выходных токенов должно иметь положительное значение, например 8192, 64K или 1M.",
|
|
4505
|
+
advancedHint: "Остальные поля находятся в файле cordis.patch.yml; отредактируйте этот раздел напрямую.",
|
|
4506
|
+
modelCapacityInvalid: "Емкость должна быть числом, возможно с суффиксом K или M.",
|
|
4507
|
+
modelDuplicate: "Каждый идентификатор модели может появиться один раз.",
|
|
4508
|
+
fetchModels: "Получить доступные модели",
|
|
4509
|
+
fetching: "Спросил у провайдера...",
|
|
4510
|
+
fetchNeedsBaseUrl: "Сначала введите базовый URL-адрес, а затем извлеките его.",
|
|
4511
|
+
fetchEmpty: "Поставщик не указал моделей. Добавьте их вручную.",
|
|
4512
|
+
fetchTitle: "Выберите модели",
|
|
4513
|
+
fetchDescription: "Это модели, доступные у этого поставщика. Проверенные модели составляют список.",
|
|
4514
|
+
fetchSearch: "Поиск моделей",
|
|
4515
|
+
fetchNoMatches: "Нет подходящих моделей.",
|
|
4516
|
+
fetchSelectAll: "Выбрать все",
|
|
4517
|
+
fetchDeselectAll: "Отменить выбор всех",
|
|
4518
|
+
fetchAdopt: "Обновить список",
|
|
4519
|
+
fetchKeepOne: "Проверьте хотя бы одну модель.",
|
|
4520
|
+
customTag: "Пользовательский",
|
|
4521
|
+
customRoute: "Идентификатор поставщика",
|
|
4522
|
+
customRouteHint: "Идентификатор в нижнем регистре, начинающийся с буквы, который уникально называет этого поставщика в запросах и в качестве его учетного имени.",
|
|
4523
|
+
customRouteInvalid: "Начните со строчной буквы; затем строчные буквы, цифры и тире.",
|
|
4524
|
+
customRouteTaken: "Поставщик уже использует этот идентификатор.",
|
|
4525
|
+
customDisplayName: "Отображаемое имя",
|
|
4526
|
+
customApi: "Протокол API",
|
|
4527
|
+
customApiUnset: "Не выбрано",
|
|
4528
|
+
protocolOpenAiCompletions: "Завершения чата OpenAI",
|
|
4529
|
+
protocolOpenAiResponses: "Ответы OpenAI",
|
|
4530
|
+
protocolAnthropicMessages: "Антропные сообщения",
|
|
4531
|
+
customNeedsBaseUrl: "Пользовательскому поставщику нужен базовый URL-адрес.",
|
|
4532
|
+
customBaseUrlInvalid: "Введите действительный URL-адрес HTTP или HTTPS.",
|
|
4533
|
+
customNeedsModels: "Пользовательскому поставщику нужна хотя бы одна модель.",
|
|
4534
|
+
customBaseUrlPlaceholder: "https://gateway.example/v1",
|
|
4535
|
+
customAnthropicBaseUrlPlaceholder: "https://gateway.example",
|
|
4536
|
+
settingsPathUnresolvable: "неразрешимый путь настроек",
|
|
4537
|
+
create: "Создать поставщика",
|
|
4538
|
+
creating: "Создание…",
|
|
4539
|
+
welcomeTitle: "Уведомление о предварительном просмотре",
|
|
4540
|
+
welcomeBody: "DeepSeek Harness 0.2 все еще находится в предварительной версии, и многие области нуждаются в дальнейшем улучшении и доработке. Мы приветствуем отзывы и предложения от всех разработчиков и пользователей. Новое настольное приложение теперь ориентировано на широкий круг пользователей, а расширенные функции, связанные с разработчиком, можно включить в настройках. Ожидается, что функции продукта DeepSeek Harness и API-интерфейсы плагинов будут продолжать быстро меняться и развиваться и со временем будут постепенно стабилизироваться. \n\nМы надеемся изучить пределы интеллекта вместе с пользователями и разработчиками по всему миру, опираясь на многоразовую и компонуемую инфраструктуру с открытым исходным кодом. Мы приглашаем всех воплотить свои идеи в жизнь с помощью DeepSeek Harness и принять участие в сообществе, чтобы обогатить экосистему плагинов.",
|
|
4541
|
+
welcomeContinue: "Продолжить",
|
|
4542
|
+
welcomeError: "Не удалось сохранить подтверждение. Пожалуйста, попробуйте еще раз.",
|
|
4543
|
+
onboardingTitle: "Добавьте ключ API, чтобы начать работу.",
|
|
4544
|
+
onboardingDescription: "Настройте официального поставщика DeepSeek, чтобы начать сборку.",
|
|
4545
|
+
onboardingLater: "Настроить позже",
|
|
4546
|
+
onboardingSave: "Сохранить и продолжить",
|
|
4547
|
+
onboardingSaving: "Сохранение…",
|
|
4548
|
+
keyRequired: "Введите ключ API, чтобы продолжить."
|
|
4549
|
+
};
|
|
4550
|
+
/** Portuguese dictionary, checked against the English keys. */
|
|
4551
|
+
const pt = {
|
|
4552
|
+
nav: "Modelos",
|
|
4553
|
+
deepSeekAccount: "DeepSeek Conta",
|
|
4554
|
+
title: "Modelos",
|
|
4555
|
+
intro: "Insira suas chaves API para usar modelos dos seguintes fornecedores.",
|
|
4556
|
+
edit: "Editar",
|
|
4557
|
+
editProvider: "Editar {provider}",
|
|
4558
|
+
remove: "Excluir",
|
|
4559
|
+
removeProvider: "Excluir {provider}",
|
|
4560
|
+
deleteTitle: "Excluir {provider}?",
|
|
4561
|
+
deleteDescription: "Excluir {provider} remove sua configuração. Qualquer credencial usada é gerenciada em outro lugar e será mantida.",
|
|
4562
|
+
deleteDescriptionWithCredential: "A exclusão de {provider} remove sua configuração e a chave API armazenada.",
|
|
4563
|
+
deleteConfirm: "Excluir {provider}",
|
|
4564
|
+
deleting: "Excluindo {provider}…",
|
|
4565
|
+
add: "Adicionar provedor de modelo",
|
|
4566
|
+
addMode: "Como adicionar",
|
|
4567
|
+
addCatalog: "Provedor de modelo terceirizado",
|
|
4568
|
+
addCustom: "Modelo personalizado API",
|
|
4569
|
+
addCatalogHint: "Escolha OpenAI, Anthropic, Kimi ou outro provedor no catálogo integrado e insira sua chave API.",
|
|
4570
|
+
addCustomHint: "Conecte um retransmissor, um servidor auto-hospedado ou qualquer outro endpoint compatível com OpenAI ou Anthropic por meio de URL, protocolo e modelos básicos.",
|
|
4571
|
+
addCatalogExhausted: "Cada provedor de catálogo já está configurado.",
|
|
4572
|
+
addCustomUnavailable: "Nenhum protocolo API está disponível para declaração.",
|
|
4573
|
+
provider: "Provedor",
|
|
4574
|
+
close: "Fechar",
|
|
4575
|
+
cancel: "Cancelar",
|
|
4576
|
+
apply: "Aplicar",
|
|
4577
|
+
applying: "Aplicando…",
|
|
4578
|
+
savedProvider: "Salvo {provider}.",
|
|
4579
|
+
credentialConfigured: "API chave configurada",
|
|
4580
|
+
credentialMissing: "API chave faltando",
|
|
4581
|
+
accountSignedIn: "Conectado",
|
|
4582
|
+
readOnly: "O documento de configurações é somente leitura nesta implantação.",
|
|
4583
|
+
loadFailed: "Falha ao carregar o diretório do provedor",
|
|
4584
|
+
conflict: "Outra pessoa alterou essas configurações enquanto este cartão estava aberto. Feche-o e abra-o novamente para editar os valores atuais.",
|
|
4585
|
+
retry: "Tentar novamente",
|
|
4586
|
+
keyInput: "API chave",
|
|
4587
|
+
keyReveal: "Mostrar segredo",
|
|
4588
|
+
keyHide: "Ocultar segredo",
|
|
4589
|
+
keyPlaceholder: "Insira sua chave API",
|
|
4590
|
+
keyPlaceholderFallback: "Deixe em branco para usar env como autenticação ({hint})",
|
|
4591
|
+
keyPlaceholderSaved: "Deixe em branco para usar credenciais salvas",
|
|
4592
|
+
keyFallbackMissing: "Env var não detectado. Insira uma chave API ou configure {hint} em seu ambiente.",
|
|
4593
|
+
keyFallbackDetected: "Variável de ambiente detectada. ({hint})",
|
|
4594
|
+
keyFallbackDetectedHidden: "Variável de ambiente detectada.",
|
|
4595
|
+
keyFallbackUnchecked: "O status da credencial ambiental não foi confirmado.",
|
|
4596
|
+
keyHelp: "As credenciais salvas são usadas primeiro. Fallbacks de ambiente mostrados aqui, em ordem: {env}. As fontes são o ambiente de inicialização, $cwd/.env e, em seguida, $DSH_HOME/.env.",
|
|
4597
|
+
authHelp: "Detalhes de autenticação",
|
|
4598
|
+
customized: "Configurações personalizadas",
|
|
4599
|
+
baseUrl: "URL base",
|
|
4600
|
+
baseUrlDefault: "Nenhum endpoint padrão",
|
|
4601
|
+
baseUrlEnvironment: "Configuração do endpoint do provedor: {env}",
|
|
4602
|
+
baseUrlConfigured: "Endpoint configurado pelo provedor",
|
|
4603
|
+
baseUrlPlaceholder: "{url}",
|
|
4604
|
+
deepSeekBaseUrl: "https://api.deepseek.com/anthropic (padrão para usar DEEPSEEK_BASE_URL)",
|
|
4605
|
+
deepSeekEndpointHint: "Use um endpoint API compatível com Anthropic Messages.",
|
|
4606
|
+
models: "Modelos",
|
|
4607
|
+
modelsInherited: "Usando os padrões do adaptador",
|
|
4608
|
+
modelsCustomized: "Catálogo de modelos personalizados",
|
|
4609
|
+
resetModels: "Restaurar padrões",
|
|
4610
|
+
model: "Modelo",
|
|
4611
|
+
modelId: "ID do modelo",
|
|
4612
|
+
modelName: "Nome de exibição",
|
|
4613
|
+
modelNamePlaceholder: "Usa o ID do modelo quando vazio",
|
|
4614
|
+
contextWindow: "Janela de contexto",
|
|
4615
|
+
contextWindowPlaceholder: "Usa o padrão do provedor",
|
|
4616
|
+
maxTokens: "Máximo de tokens de saída",
|
|
4617
|
+
maxTokensPlaceholder: "Usa o padrão do provedor",
|
|
4618
|
+
modelAdvanced: "Opções de modelo",
|
|
4619
|
+
modelInputTypes: "Tipos de entrada",
|
|
4620
|
+
modelInputText: "Texto",
|
|
4621
|
+
modelInputImage: "Imagem",
|
|
4622
|
+
modelReasoning: "Níveis de raciocínio",
|
|
4623
|
+
modelReasoningLevel: "Nível",
|
|
4624
|
+
modelReasoningValue: "valor API",
|
|
4625
|
+
modelReasoningHelp: "Sobre níveis de raciocínio",
|
|
4626
|
+
modelReasoningHelpText: "O valor da API é enviado no campo de esforço de raciocínio da solicitação, como reasoning_effort da OpenAI. Por padrão, usa-se o nome do nível; se a documentação da API do provedor do modelo especificar outro valor, use-o. Desativado desliga o raciocínio e não exige valor; qualquer valor já salvo na configuração é mantido e enviado.",
|
|
4627
|
+
modelReasoningNeedsLevel: "Adicione pelo menos um nível além de Desativado ou desative os níveis de raciocínio.",
|
|
4628
|
+
modelReasoningValueRequired: "Cada nível além de Desligado precisa de um valor API e nenhum valor pode ficar vazio.",
|
|
4629
|
+
modelReasoningAdd: "Adicionar nível",
|
|
4630
|
+
modelReasoningRemove: "Excluir nível",
|
|
4631
|
+
modelReasoningOffValuePlaceholder: "Desativa o raciocínio",
|
|
4632
|
+
addModel: "Adicionar modelo",
|
|
4633
|
+
removeModel: "Excluir modelo",
|
|
4634
|
+
reorderModel: "Reordenar modelo",
|
|
4635
|
+
reorderModelHelp: "Arraste para reordenar ou use as teclas de seta para cima e para baixo.",
|
|
4636
|
+
modelsEmpty: "Nenhum modelo será mostrado no seletor. IDs não listados ainda podem ser enviados diretamente.",
|
|
4637
|
+
keyBlank: "Insira a chave API ou deixe o campo vazio para manter a chave armazenada.",
|
|
4638
|
+
keyBlankNew: "Insira a chave API ou deixe o campo vazio se este provedor autenticar de outra forma.",
|
|
4639
|
+
keyIllegalCharacters: "Esta chave API não está em um formato válido. Por favor, verifique.",
|
|
4640
|
+
modelIdRequired: "O ID do modelo é obrigatório.",
|
|
4641
|
+
modelIdDuplicate: "O ID do modelo deve ser exclusivo.",
|
|
4642
|
+
modelNameInvalid: "O nome de exibição não pode ficar vazio.",
|
|
4643
|
+
modelContextInvalid: "A janela de contexto deve ter uma contagem positiva, como 131072, 256K ou 1M.",
|
|
4644
|
+
modelMaxTokensInvalid: "Os tokens de saída máximos devem ter uma contagem positiva, como 8192, 64K ou 1M.",
|
|
4645
|
+
advancedHint: "Outros campos residem em cordis.patch.yml; edite essa seção diretamente.",
|
|
4646
|
+
modelCapacityInvalid: "Uma capacidade deve ser um número, opcionalmente com o sufixo K ou M.",
|
|
4647
|
+
modelDuplicate: "Cada ID de modelo pode aparecer uma vez.",
|
|
4648
|
+
fetchModels: "Buscar modelos disponíveis",
|
|
4649
|
+
fetching: "Perguntando ao provedor…",
|
|
4650
|
+
fetchNeedsBaseUrl: "Insira o URL base primeiro e depois busque.",
|
|
4651
|
+
fetchEmpty: "O fornecedor não listou nenhum modelo. Adicione-os manualmente.",
|
|
4652
|
+
fetchTitle: "Escolha modelos",
|
|
4653
|
+
fetchDescription: "Estes são os modelos que este fornecedor tem disponíveis. Os modelos verificados compõem a lista.",
|
|
4654
|
+
fetchSearch: "Pesquisar modelos",
|
|
4655
|
+
fetchNoMatches: "Não há modelos correspondentes.",
|
|
4656
|
+
fetchSelectAll: "Selecionar tudo",
|
|
4657
|
+
fetchDeselectAll: "Desmarcar tudo",
|
|
4658
|
+
fetchAdopt: "Lista de atualização",
|
|
4659
|
+
fetchKeepOne: "Mantenha pelo menos um modelo verificado.",
|
|
4660
|
+
customTag: "Personalizado",
|
|
4661
|
+
customRoute: "ID do provedor",
|
|
4662
|
+
customRouteHint: "Identificador minúsculo, começando com uma letra, que nomeia exclusivamente esse provedor nas solicitações e como seu nome de credencial.",
|
|
4663
|
+
customRouteInvalid: "Comece com uma letra minúscula; em seguida, letras minúsculas, dígitos e travessões.",
|
|
4664
|
+
customRouteTaken: "Um provedor já usa esse ID.",
|
|
4665
|
+
customDisplayName: "Nome de exibição",
|
|
4666
|
+
customApi: "API protocolo",
|
|
4667
|
+
customApiUnset: "Não selecionado",
|
|
4668
|
+
protocolOpenAiCompletions: "Conclusões do bate-papo OpenAI",
|
|
4669
|
+
protocolOpenAiResponses: "Respostas OpenAI",
|
|
4670
|
+
protocolAnthropicMessages: "Mensagens Antrópicas",
|
|
4671
|
+
customNeedsBaseUrl: "Um provedor personalizado precisa de um URL base.",
|
|
4672
|
+
customBaseUrlInvalid: "Insira um URL HTTP ou HTTPS válido.",
|
|
4673
|
+
customNeedsModels: "Um provedor personalizado precisa de pelo menos um modelo.",
|
|
4674
|
+
customBaseUrlPlaceholder: "https://gateway.example/v1",
|
|
4675
|
+
customAnthropicBaseUrlPlaceholder: "https://gateway.example",
|
|
4676
|
+
settingsPathUnresolvable: "caminho de configurações insolúveis",
|
|
4677
|
+
create: "Criar provedor",
|
|
4678
|
+
creating: "Criando…",
|
|
4679
|
+
welcomeTitle: "Aviso de visualização",
|
|
4680
|
+
welcomeBody: "DeepSeek Harness 0.2 ainda está em versão prévia e muitas áreas precisam de melhorias e refinamentos contínuos. Agradecemos comentários e sugestões de todos os desenvolvedores e usuários. O novo aplicativo de desktop agora é direcionado a uma ampla gama de usuários, enquanto recursos avançados relacionados ao desenvolvedor podem ser habilitados nas configurações. Espera-se que os recursos do produto e as APIs de plug-in do DeepSeek Harness continuem com rápida iteração e evolução e se estabilizem gradualmente ao longo do tempo.\n\nEsperamos explorar os limites da inteligência junto com usuários e desenvolvedores em todo o mundo, desenvolvendo uma infraestrutura de código aberto, reutilizável e combinável. Convidamos todos a dar vida às suas ideias com DeepSeek Harness e participar da comunidade para enriquecer o ecossistema de plug-ins.",
|
|
4681
|
+
welcomeContinue: "Continuar",
|
|
4682
|
+
welcomeError: "A confirmação não pôde ser salva. Por favor, tente novamente.",
|
|
4683
|
+
onboardingTitle: "Adicione uma chave API para começar",
|
|
4684
|
+
onboardingDescription: "Configure o provedor DeepSeek oficial para começar a compilar.",
|
|
4685
|
+
onboardingLater: "Configurar mais tarde",
|
|
4686
|
+
onboardingSave: "Salvar e continuar",
|
|
4687
|
+
onboardingSaving: "Salvando…",
|
|
4688
|
+
keyRequired: "Insira uma chave de API para continuar."
|
|
4689
|
+
};
|
|
3716
4690
|
//#endregion
|
|
3717
4691
|
//#region ../../../vendor/cosmokit/src/misc.ts
|
|
3718
4692
|
/** Return true when a value is `null` or `undefined`. */
|
|
@@ -4651,7 +5625,13 @@ window.__ModuleLoader__.load({
|
|
|
4651
5625
|
const credentialOnboarding = Config(payload === void 0 ? {} : payload).credentialOnboarding && !("dshDesktop" in globalThis);
|
|
4652
5626
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
4653
5627
|
zh,
|
|
4654
|
-
en
|
|
5628
|
+
en,
|
|
5629
|
+
ja,
|
|
5630
|
+
es,
|
|
5631
|
+
fr,
|
|
5632
|
+
de,
|
|
5633
|
+
ru,
|
|
5634
|
+
pt
|
|
4655
5635
|
}), "ui-settings-models: copy dictionaries");
|
|
4656
5636
|
const schema = createSettingsSchemaOperations(ctx.settingsSchema);
|
|
4657
5637
|
const operations = createModelsOperations(ctx);
|