diff --git a/Makefile b/Makefile index 211641c8..862960a9 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,11 @@ help: @echo " docs 生成 Swagger API 文档" @echo " install-swagger 安装 swag 工具" @echo "" + @echo "模型厂商目录:" + @echo " model-catalog-check 校验厂商目录(不变量 + 新旧行为对照 + 厂商测试)" + @echo " model-catalog-diff 对比 models.dev,输出模型元数据差异报告(需人工审阅)" + @echo " 可选: make model-catalog-diff VENDOR=deepseek" + @echo "" @echo "环境检查:" @echo " check-env 检查环境配置" @echo " list-containers 列出运行中的容器" @@ -107,6 +112,19 @@ run: build test: go test -v ./... +# Vendor catalog: invariants, legacy-behaviour parity and vendor facts. +# Run this after adding a vendor or editing any models.json. +.PHONY: model-catalog-check +model-catalog-check: + go test ./internal/models/parity/ ./internal/models/vendors/ ./internal/models/catalog/ ./internal/models/api/... + +# Vendor catalog: report where our model metadata differs from models.dev. +# Development aid only — nothing is fetched at runtime and nothing is written +# automatically; review each line against the vendor's own documentation. +.PHONY: model-catalog-diff +model-catalog-diff: + @python3 scripts/model_catalog_diff.py $(if $(VENDOR),--vendor $(VENDOR),) + # Clean build artifacts clean: go clean diff --git a/config/builtin_models.yaml.example b/config/builtin_models.yaml.example index f0a18a24..2095d2d7 100644 --- a/config/builtin_models.yaml.example +++ b/config/builtin_models.yaml.example @@ -75,3 +75,14 @@ builtin_models: [] # api_key: ${OPENAI_API_KEY} # provider: openai # context_window: 200000 # optional; omit to use the 200K default +# # Optional catalog overrides for chat models. `api` forces the wire +# # protocol; `compat` is the flat protocol object documented in +# # internal/models/catalog/compat.go; `thinking_levels` maps the +# # off/auto/minimal/low/medium/high/xhigh/max ladder to vendor values. +# # spec: +# # api: openai-completions +# # compat: +# # max_tokens_field: max_tokens +# # thinking_format: thinking-type +# # thinking_levels: +# # xhigh: high diff --git a/config/models.json.example b/config/models.json.example new file mode 100644 index 00000000..4fa66eec --- /dev/null +++ b/config/models.json.example @@ -0,0 +1,61 @@ +{ + "_comment": [ + "config/models.json — deployment overlay for the model catalog.", + "Copy to config/models.json (or point MODELS_CONFIG at a custom path).", + "Same idea as pi's ~/.pi/agent/models.json: 'providers' is keyed by vendor id.", + "A known id (see GET /api/v1/models/providers) patches the built-in vendor;", + "a new id declares a vendor. String values accept ${ENV} / $ENV interpolation.", + "Unknown keys are rejected at startup so typos surface immediately.", + "'models' upserts by id: an id that already exists keeps every field you", + "did not write (reasoning, thinking_levels, compat, input); a new id is created.", + "'icon' is an inline string or an .svg path under this file's own", + "directory — no absolute paths, no escaping it, 256 KB max: icons are served", + "as a data: URI to everyone who can open the model pages.", + "Per-model 'compat' keys depend on the protocol; see internal/models/catalog/compat.go." + ], + "providers": { + "openai": { + "base_url": "https://gateway.example.com/openai/v1", + "api_key": "${OPENAI_API_KEY}", + "headers": {"X-Gateway-Team": "rag"}, + "model_overrides": { + "gpt-5.5": {"context_window": 200000, "max_output_tokens": 32000} + } + }, + "aliyun": { + "models": [ + {"id": "qwen3.9-plus", "reasoning": true, "input": ["text", "image"], + "context_window": 1000000, "max_output_tokens": 65536, + "compat": {"thinking_always_send": true, "thinking_disable_on_non_stream": true}} + ] + }, + "lab-vllm": { + "name": "Lab vLLM", + "names": {"zh-CN": "实验室 vLLM"}, + "description": "Self-hosted vLLM cluster", + "api": "openai-completions", + "base_url": "http://vllm.lab.internal:8000/v1", + "requires_auth": false, + "model_types": ["chat", "embedding"], + "url_patterns": ["vllm.lab.internal"], + "icon": "icons/lab-vllm.svg", + "compat": {"thinking_format": "chat-template-kwargs", "max_tokens_field": "max_tokens"}, + "models": [ + {"id": "Qwen/Qwen3-32B", "reasoning": true, "context_window": 131072, "max_output_tokens": 16384}, + {"id": "BAAI/bge-m3", "type": "Embedding", "dimension": 1024} + ] + }, + "claude-proxy": { + "name": "Claude via proxy", + "api": "anthropic-messages", + "base_url": "https://claude-proxy.example.com/v1", + "auth": "x-api-key", + "api_key": "${CLAUDE_PROXY_KEY}", + "models": [ + {"id": "claude-sonnet-5", "reasoning": true, "input": ["text", "image"], + "context_window": 200000, "max_output_tokens": 64000, + "compat": {"thinking_mode": "adaptive", "supports_effort": true}} + ] + } + } +} diff --git a/docker-compose.yml b/docker-compose.yml index 35fd3cbd..5e02f561 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -56,6 +56,9 @@ services: # to config/builtin_models.yaml, edit it for your deployment, then # uncomment the line below. See docs/BUILTIN_MODELS.md. # - ./config/builtin_models.yaml:/app/config/builtin_models.yaml:ro + # Optional: model catalog overlay (extra vendors / model overrides). + # Copy config/models.json.example to config/models.json, then + # - ./config/models.json:/app/config/models.json:ro healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s diff --git a/frontend/src/api/agent/index.ts b/frontend/src/api/agent/index.ts index 6b12705f..8fe975f5 100644 --- a/frontend/src/api/agent/index.ts +++ b/frontend/src/api/agent/index.ts @@ -47,6 +47,9 @@ export interface CustomAgentConfig { temperature?: number; max_completion_tokens?: number; // 0 = 跟随系统默认(快速问答 2048;智能推理 4096,绑沙箱可写文件时 24576)。大于 0 为自定义上限 thinking?: boolean; // 是否启用思考模式(支持扩展思考的模型) + // 思考强度:off | auto | minimal | low | medium | high | xhigh | max。 + // 为空时退回 thinking 布尔值(true == auto,false == off)。 + reasoning_effort?: string; citation_enabled?: boolean; // 是否在最终回答中输出知识库/网页来源引用(默认开启) // ===== Agent模式设置 ===== diff --git a/frontend/src/api/initialization/index.ts b/frontend/src/api/initialization/index.ts index 36ded671..a7bf1b5c 100644 --- a/frontend/src/api/initialization/index.ts +++ b/frontend/src/api/initialization/index.ts @@ -1,5 +1,6 @@ import { get, post, put } from '../../utils/request'; import i18n from '@/i18n' +import type { ModelCapabilities, ReasoningEffortLevel } from '../model' const t = (key: string) => i18n.global.t(key) @@ -579,28 +580,163 @@ export function fabriTag(request: FabriTagRequest): Promise { }); } -// 模型厂商信息类型 -export interface ModelProviderOption { - value: string; // provider 标识符 - label: string; // 显示名称 - description: string; // 描述 - defaultUrls: Record; // 按模型类型区分的默认 URL - modelTypes: string[]; // 支持的模型类型 +// 厂商额外配置字段(Azure api_version、LKEAP secret_key 等)。 +// Mirrors internal/models/catalog.ExtraField. +export interface ModelProviderExtraFieldOption { + label: string; + value: string; } -// 获取模型厂商列表 +/** + * Renames the primary credential input for vendors whose API does not take a + * plain API key. LKEAP and Volcengine sign their rerank requests with a + * CAM / IAM key pair, so the first field is a SecretId / Access Key ID. + * The vendor declares the wording so the editor needs no vendor table. + */ +export interface ModelProviderCredentialLabel { + label: string; + labels?: Record; + placeholder?: string; + placeholders?: Record; + hint?: string; + hints?: Record; + // Backend model types ("KnowledgeQA", "Rerank", ...); empty = all. + model_types?: string[]; + required?: boolean; +} + +export interface ModelProviderExtraField { + key: string; + label: string; + labels?: Record; + type: 'string' | 'number' | 'boolean' | 'select' | 'password' | string; + required?: boolean; + default?: string; + placeholder?: string; + options?: ModelProviderExtraFieldOption[]; + // Backend model types ("KnowledgeQA", "Embedding", "Rerank", "VLLM", "ASR"); empty = all. + model_types?: string[]; + // Secret values are never echoed back; they are stored as the app_secret credential. + secret?: boolean; +} + +// 厂商内置模型目录条目。Mirrors handler.ModelCatalogEntryDTO. +export interface ModelCatalogEntry { + id: string; + name: string; + type: string; + api?: string; + reasoning?: boolean; + input?: string[]; + context_window?: number; + max_output_tokens?: number; + dimension?: number; + thinking_levels?: ReasoningEffortLevel[]; + cost?: Record; + // Vendor page these facts came from, for the "read the docs" link. + source?: string; +} + +export interface ModelProviderThinking { + format: string; + levels: ReasoningEffortLevel[]; +} + +// 模型厂商信息类型。Mirrors handler.ModelProviderDTO — the frontend keeps no +// vendor table of its own; everything rendered for a vendor comes from here. +export interface ModelProviderOption { + value: string; // provider 标识符 + label: string; // 显示名称(英文 / 默认) + labels?: Record; // 按 locale 的显示名称 + description: string; // 描述 + descriptions?: Record; + website?: string; + icon?: string; // data:image/svg+xml;base64,... 可直接用于 + api?: string; + auth?: string; + requiresAuth?: boolean; + defaultUrls: Record; // 按模型类型区分的默认 URL + modelTypes: string[]; // 支持的模型类型 + extraFields?: ModelProviderExtraField[]; + credentialLabels?: ModelProviderCredentialLabel[]; + models?: ModelCatalogEntry[]; + thinking?: ModelProviderThinking; + order?: number; +} + +// 获取模型厂商列表。 +// +// 失败时 reject(不再吞成空数组):唯一的调用方 stores/modelProviders 需要 +// 区分「后端真的没有厂商」和「这次请求挂了」——把失败当成空列表缓存下来, +// 会让厂商下拉在整个会话里一直空着,直到用户刷新页面。 export function listModelProviders(modelType?: string): Promise { + const url = modelType + ? `/api/v1/models/providers?model_type=${encodeURIComponent(modelType)}` + : '/api/v1/models/providers'; + return get(url).then((response: any) => { + const data = response?.data; + // Reject rather than coerce: the store distinguishes "this vendor list + // is genuinely empty" (cacheable) from "the request did not produce a + // list" (retry on the next mount). Returning [] here would make a + // malformed 200 look like the former and blank the vendor dropdown and + // every card icon for the rest of the session. + if (!Array.isArray(data)) { + return Promise.reject(new Error('model providers response is not a list')); + } + return data as ModelProviderOption[]; + }); +} + +export interface ResolveModelCatalogParams { + provider: string; + model?: string; + base_url?: string; + model_type?: string; + api?: string; + thinking_control?: string; + remote_model_name?: string; + // Vendor-declared non-secret extra fields (Azure api_version, ...) are + // forwarded by key so the preview resolves the same request the runtime + // will make. The backend only accepts keys the vendor declares. + [extraField: string]: string | undefined; +} + +// 目录解析结果。Mirrors handler.ResolveModelCatalog response data. +export interface ResolvedModelCatalog { + provider: string; + api: string; + // base_url and url are only returned to callers who may configure + // integrations; a viewer gets the capability answer without the endpoint. + base_url?: string; + // url is the endpoint the row will actually call, and only vendors that + // compute their own URL report one (Azure, whose api_version picks + // between the v1 data plane and the dated deployments path). + url?: string; + remote_model: string; + cataloged: boolean; + model: Record; + capabilities: ModelCapabilities; +} + +// 解析模型的有效接入配置(协议、思考等级、上下文窗口等),供编辑器实时展示。 +export function resolveModelCatalog(params: ResolveModelCatalogParams): Promise { + const query = new URLSearchParams(); + for (const [key, value] of Object.entries(params)) { + if (value !== undefined && value !== null && String(value).trim() !== '') { + query.set(key, String(value).trim()); + } + } return new Promise((resolve, reject) => { - const url = modelType - ? `/api/v1/models/providers?model_type=${encodeURIComponent(modelType)}` - : '/api/v1/models/providers'; - get(url) + get(`/api/v1/models/catalog/resolve?${query.toString()}`) .then((response: any) => { - resolve(response.data || []); + if (response?.success && response?.data) { + resolve(response.data as ResolvedModelCatalog); + } else { + reject(new Error(response?.message || 'resolve failed')); + } }) .catch((error: any) => { - console.error('Failed to list model providers:', error); - resolve([]); // 失败时返回空数组,前端可以回退到默认值 + reject(error?.error || error); }); }); } diff --git a/frontend/src/api/model/index.ts b/frontend/src/api/model/index.ts index 4ad93f09..5b5699c8 100644 --- a/frontend/src/api/model/index.ts +++ b/frontend/src/api/model/index.ts @@ -6,6 +6,45 @@ export * from './modelUsage' const t = (key: string) => i18n.global.t(key) +// Protocol-neutral thinking level. Mirrors internal/models/api.ReasoningEffort. +export type ReasoningEffortLevel = + | 'off' + | 'auto' + | 'minimal' + | 'low' + | 'medium' + | 'high' + | 'xhigh' + | 'max' + +// Catalog view of a saved chat/VLM model. Mirrors internal/models/catalog.Capabilities. +// thinking_levels: empty array = the model cannot be asked to think. +export interface ModelCapabilities { + provider: string; + api: string; + cataloged: boolean; + reasoning: boolean; + thinking_levels: ReasoningEffortLevel[]; + thinking_format: string; + input?: string[]; + context_window?: number; + max_output_tokens?: number; + max_tokens_field?: string; +} + +// Per-row override of a catalog entry. Mirrors internal/types.ModelSpecOverride. +// compat is the flat, protocol-specific object documented in +// internal/models/catalog/compat.go (free-form JSON). +export interface ModelSpecOverride { + api?: string; + reasoning?: boolean; + input?: string[]; + context_window?: number; + max_output_tokens?: number; + thinking_levels?: Record; + compat?: Record; +} + // 模型类型定义 export interface ModelConfig { id?: string; @@ -43,7 +82,12 @@ export interface ModelConfig { // kept on the type so create-mode payloads can still carry them in the // initial POST body. app_secret?: string; + // Per-model catalog override (protocol, limits, protocol compat knobs). + spec?: ModelSpecOverride; }; + // Catalog view (chat / VLM remote models only): protocol, thinking levels, + // context window. Computed by the backend from provider + name + overrides. + capabilities?: ModelCapabilities; is_default?: boolean; is_builtin?: boolean; status?: string; @@ -171,6 +215,8 @@ export interface ModelDebugOptions { top_p?: number max_tokens?: number thinking?: boolean + // Graded thinking level; takes precedence over the boolean when set. + reasoning_effort?: ReasoningEffortLevel | string } export interface ModelDebugResult { diff --git a/frontend/src/assets/theme/tdesign-overrides.less b/frontend/src/assets/theme/tdesign-overrides.less index e48294a2..75f63526 100644 --- a/frontend/src/assets/theme/tdesign-overrides.less +++ b/frontend/src/assets/theme/tdesign-overrides.less @@ -21,6 +21,16 @@ border-color: rgba(255, 255, 255, 0.08); } +// .wk-popover clips to its rounded corners with overflow:hidden, which also +// cancels the overflow-y:auto TDesign puts on a select's list — the options +// past the first screenful become unreachable rather than merely unseen. +// Restore vertical scrolling for any select wearing this skin; the horizontal +// axis stays clipped, which is what the rounded corners needed. +.t-select__dropdown.wk-popover .t-popup__content { + overflow-y: auto; + overscroll-behavior: contain; +} + // A quiet option surface, with the brand accent reserved for the small check. .t-select-option.t-is-selected:not(.t-is-disabled), .t-select-option.t-is-selected:not(.t-is-disabled):hover { diff --git a/frontend/src/components/ModelDebugDrawer.vue b/frontend/src/components/ModelDebugDrawer.vue index 55cc000f..dd734edc 100644 --- a/frontend/src/components/ModelDebugDrawer.vue +++ b/frontend/src/components/ModelDebugDrawer.vue @@ -138,12 +138,24 @@ :autosize="{ minRows: 2, maxRows: 4 }" /> +
- -
- - {{ $t('modelSettings.debug.thinkingDesc') }} -
+ + + +
+ {{ $t(levelLabelKey(level)) }} + {{ $t(levelDescriptionKey(level)) }} +
+
+
+

+ {{ $t('modelSettings.debug.reasoningEffortDesc') }} + +

@@ -204,7 +216,16 @@ import { copyWithToast } from '@/utils/clipboard' import SettingDrawer from '@/components/settings/SettingDrawer.vue' import { debugModel, type ModelConfig, type ModelDebugResult } from '@/api/model' import { fileSizeVerification } from '@/utils' -import { modelSupportsThinking } from '@/utils/thinkingControl' +import { useModelProvidersStore } from '@/stores/modelProviders' +import { + clampLevel, + levelDescriptionKey, + levelEnablesThinking, + levelLabelKey, + modelCanThink, + supportedLevels, + type ReasoningLevel, +} from '@/utils/reasoningEffort' import { formatContextWindow, modelHasContextWindow, @@ -219,7 +240,8 @@ const emit = defineEmits<{ (e: 'update:visible', value: boolean): void }>() -const { t, te } = useI18n() +const { t, locale } = useI18n() +const providersStore = useModelProvidersStore() const drawerVisible = computed({ get: () => props.visible, set: value => emit('update:visible', value), @@ -233,7 +255,7 @@ const input = ref('') const documentsText = ref('') const file = ref(null) const fileInputRef = ref(null) -const thinking = ref(false) +const reasoningEffort = ref('off') const temperature = ref(0.7) const topP = ref(1) const maxTokens = ref(1024) @@ -251,7 +273,10 @@ let runSequence = 0 const selectedModel = computed(() => props.models.find(model => model.id === selectedModelId.value)) const filteredModels = computed(() => props.models.filter(model => model.type === selectedModelType.value)) const isChat = computed(() => selectedModel.value?.type === 'KnowledgeQA') -const supportsThinking = computed(() => selectedModel.value ? modelSupportsThinking(selectedModel.value) : false) +// Thinking is offered only when the catalog says the model can think +// (remote chat models carry `capabilities` computed by the backend). +const supportsThinking = computed(() => modelCanThink(selectedModel.value?.capabilities)) +const reasoningOptions = computed(() => supportedLevels(selectedModel.value?.capabilities)) const needsFile = computed(() => ['VLLM', 'ASR'].includes(selectedModel.value?.type || '')) const documents = computed(() => documentsText.value.split('\n').map(item => item.trim()).filter(Boolean)) const canRun = computed(() => { @@ -289,8 +314,8 @@ const vendorLabel = (model: ModelConfig) => { const provider = model.parameters.provider || '' if (model.source === 'local') return 'Ollama' if (provider === 'generic') return t('modelSettings.source.custom') - const key = `model.editor.providers.${provider}.label` - return te(key) ? t(key) : provider || model.source + if (!provider) return model.source + return providersStore.labelFor(provider, String(locale.value || '')) || provider } const inputLabel = computed(() => { @@ -321,6 +346,9 @@ const formattedResult = computed(() => { }) const OBSERVATION_LABELS: Record = { + api: 'modelSettings.debug.metrics.api', + thinking_format: 'modelSettings.debug.metrics.thinkingFormat', + requested_reasoning_effort: 'modelSettings.debug.metrics.requestedReasoningEffort', dimension: 'modelSettings.debug.metrics.dimension', result_count: 'modelSettings.debug.metrics.resultCount', answer_characters: 'modelSettings.debug.metrics.answerChars', @@ -332,7 +360,16 @@ const OBSERVATION_LABELS: Record = { const resultMetrics = computed(() => { if (!result.value?.observations) return [] - const obs = result.value.observations + // Flatten the nested capabilities object the backend attaches so the + // effective thinking encoding shows up next to the protocol. + const raw = result.value.observations + const caps = raw.capabilities as { thinking_format?: unknown } | undefined + const obs: Record = { + ...raw, + ...(caps && typeof caps === 'object' && caps.thinking_format !== undefined + ? { thinking_format: caps.thinking_format } + : {}), + } const keys = Object.keys(OBSERVATION_LABELS).filter(key => obs[key] !== undefined && obs[key] !== null) return keys.map(key => ({ key, @@ -345,6 +382,9 @@ const formatMetricValue = (key: string, value: unknown) => { if (typeof value === 'boolean') { return value ? t('common.yes') : t('common.no') } + if (key === 'requested_reasoning_effort' && typeof value === 'string' && value) { + return t(levelLabelKey(value)) + } return String(value) } @@ -364,7 +404,10 @@ const ensureDefaultSelection = () => { } watch(() => props.visible, visible => { - if (visible) ensureDefaultSelection() + if (visible) { + ensureDefaultSelection() + void providersStore.ensureLoaded('').catch(() => {}) + } }) watch(availableModelTypes, () => { @@ -372,8 +415,8 @@ watch(availableModelTypes, () => { }) watch(() => selectedModel.value?.id, () => { - if (!supportsThinking.value) thinking.value = false -}) + reasoningEffort.value = clampLevel(reasoningEffort.value, reasoningOptions.value) +}, { immediate: true }) watch(() => selectedModel.value?.type, () => { file.value = null @@ -417,9 +460,9 @@ const formatBytes = (bytes: number) => { return `${(bytes / (1024 * 1024)).toFixed(1)} MB` } -const historyLabel = (thinkingValue: boolean) => { - if (supportsThinking.value) { - return thinkingValue ? t('modelSettings.debug.thinkOn') : t('modelSettings.debug.thinkOff') +const historyLabel = (level: ReasoningLevel | null) => { + if (level) { + return `${t('modelSettings.debug.reasoningEffort')}: ${t(levelLabelKey(level))}` } return t('modelSettings.debug.runLabel', { n: runSequence }) } @@ -428,7 +471,7 @@ const runDebug = async () => { if (!selectedModel.value?.id || !canRun.value || running.value) return running.value = true try { - const thinkingValue = supportsThinking.value ? thinking.value : false + const level: ReasoningLevel | null = supportsThinking.value ? reasoningEffort.value : null const nextResult = await debugModel(selectedModel.value.id, { input: input.value.trim(), documents: documents.value, @@ -438,13 +481,14 @@ const runDebug = async () => { temperature: temperature.value, top_p: topP.value, max_tokens: maxTokens.value, - thinking: thinkingValue, + // reasoning_effort is authoritative; the boolean keeps older backends working. + ...(level ? { reasoning_effort: level, thinking: levelEnablesThinking(level) } : { thinking: false }), } : {}, }) result.value = nextResult history.value.unshift({ id: ++runSequence, - label: historyLabel(thinkingValue), + label: historyLabel(level), result: nextResult, }) history.value = history.value.slice(0, 6) @@ -571,11 +615,9 @@ onBeforeUnmount(() => { } } -.switch-field { - display: flex; - align-items: center; - gap: 8px; - min-height: 32px; +.form-desc code { + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: var(--app-text-xs); } .file-picker { @@ -714,3 +756,37 @@ onBeforeUnmount(() => { } } + + + diff --git a/frontend/src/components/ModelEditorDialog.vue b/frontend/src/components/ModelEditorDialog.vue index 5b27b021..aa169682 100644 --- a/frontend/src/components/ModelEditorDialog.vue +++ b/frontend/src/components/ModelEditorDialog.vue @@ -172,20 +172,45 @@
+ :loading="loadingProviders" filterable + @change="handleProviderChange" + :popup-props="{ overlayClassName: 'wk-popover provider-select-popup', overlayInnerStyle: matchTriggerWidth }"> + + - +
- {{ opt.label }} - {{ opt.description }} + + +
+ {{ providerDisplayLabel(opt) }} + {{ providerDisplayDescription(opt) }} +
+
@@ -230,11 +255,54 @@ - +
- + + + + +
+ {{ opt.label }} + {{ opt.value }} + + {{ opt.contextWindow }} + {{ $t('model.editor.dimensionLabel') }} {{ opt.dimension }} + {{ $t('model.editor.catalog.reasoning') }} + {{ $t('model.editor.catalog.vision') }} + +
+
+
+

{{ $t('model.editor.catalog.hint') }}

@@ -249,9 +317,7 @@
- + -
- + +
+ + :placeholder="secretExtraField.placeholder || ''" autocomplete="off" spellcheck="false"> +

{{ secretExtraField.placeholder }}

-
- - -

{{ $t('model.editor.lkeap.regionDesc') }}

+ +
+ +
+ + {{ field.placeholder }} +
+ + + + + + + +
@@ -312,6 +401,66 @@
+ +
+
+
+ + {{ $t('model.editor.resolved.title') }} + +
+

{{ $t('model.editor.resolved.empty') }}

+ +

+ {{ $t('model.editor.resolved.failed') }} +

+
+
{{ $t('model.editor.resolved.protocol') }}
+
{{ resolved.api }}
+
{{ $t('model.editor.resolved.catalog') }}
+
+ + {{ resolved.cataloged ? $t('model.editor.resolved.catalogedYes') : $t('model.editor.resolved.catalogedNo') }} + +
+ + + +
+
+
+ -
+

{{ $t('model.editor.sectionAdvanced') }}

@@ -367,29 +516,12 @@
- -
- - - -
- {{ opt.label }} - {{ opt.hint }} -
-
-
-

{{ $t('model.editor.thinkingControlDesc') }}

+ +
+ + +

{{ $t('model.editor.maxOutputTokensDesc') }}

-
+

{{ $t('model.editor.maxConcurrencyDesc') }}

+ + + @@ -412,21 +596,33 @@