feat: add unified llm thinking level setting

This commit is contained in:
jxxghp
2026-04-24 19:50:23 +08:00
parent de84c39d2f
commit 30b39283b6
6 changed files with 141 additions and 3 deletions
+25 -3
View File
@@ -27,6 +27,17 @@ const jobIntervalItems = computed(() => [
{ title: t('setting.system.aiAgentJobInterval1M'), value: 720 },
])
const thinkingLevelItems = computed(() => [
{ title: t('setting.system.llmThinkingLevelOff'), value: 'off' },
{ title: t('setting.system.llmThinkingLevelAuto'), value: 'auto' },
{ title: t('setting.system.llmThinkingLevelMinimal'), value: 'minimal' },
{ title: t('setting.system.llmThinkingLevelLow'), value: 'low' },
{ title: t('setting.system.llmThinkingLevelMedium'), value: 'medium' },
{ title: t('setting.system.llmThinkingLevelHigh'), value: 'high' },
{ title: t('setting.system.llmThinkingLevelMax'), value: 'max' },
{ title: t('setting.system.llmThinkingLevelXhigh'), value: 'xhigh' },
])
async function loadLlmModels() {
if (!wizardData.value.agent.provider || !wizardData.value.agent.apiKey) {
return
@@ -89,7 +100,7 @@ onMounted(() => {
</VCol>
<template v-if="wizardData.agent.enabled">
<VCol cols="12" md="4">
<VCol cols="12" md="3">
<VSwitch
v-model="wizardData.agent.global"
:label="t('setting.system.aiAgentGlobal')"
@@ -99,7 +110,7 @@ onMounted(() => {
/>
</VCol>
<VCol cols="12" md="4">
<VCol cols="12" md="3">
<VSwitch
v-model="wizardData.agent.verbose"
:label="t('setting.system.aiAgentVerbose')"
@@ -109,7 +120,7 @@ onMounted(() => {
/>
</VCol>
<VCol cols="12" md="4">
<VCol cols="12" md="3">
<VSwitch
v-model="wizardData.agent.supportImageInput"
:label="t('setting.system.llmSupportImageInput')"
@@ -119,6 +130,17 @@ onMounted(() => {
/>
</VCol>
<VCol cols="12" md="3">
<VSelect
v-model="wizardData.agent.thinkingLevel"
:label="t('setting.system.llmThinking')"
:hint="t('setting.system.llmThinkingHint')"
:items="thinkingLevelItems"
persistent-hint
color="primary"
/>
</VCol>
<VCol cols="12" md="6">
<VSelect
v-model="wizardData.agent.provider"