|
113 | 113 | import { computed, onMounted, reactive, ref } from 'vue' |
114 | 114 | import { useMessage } from 'naive-ui' |
115 | 115 | import { llmControlApi, type LLMControlPanelData, type LLMProfile, type LLMProtocol } from '@/api/llmControl' |
| 116 | +import { DEFAULT_MAX_OUTPUT_TOKENS } from '@/constants/llm' |
116 | 117 | import EndpointGrid from './EngineMatrixEndpointGrid.vue' |
117 | 118 | import InferenceCollapse from './EngineMatrixInferenceCollapse.vue' |
118 | 119 |
|
@@ -161,21 +162,21 @@ const formData = reactive<ModelRoleConfig>({ |
161 | 162 | default_model_base_url: '', |
162 | 163 | default_model: '', |
163 | 164 | default_temperature: 0.7, |
164 | | - default_max_tokens: 16000, |
| 165 | + default_max_tokens: DEFAULT_MAX_OUTPUT_TOKENS, |
165 | 166 | default_timeout_seconds: 300, |
166 | 167 | cheap_model_provider: 'openai', |
167 | 168 | cheap_model_api_key: '', |
168 | 169 | cheap_model_base_url: '', |
169 | 170 | cheap_model: '', |
170 | 171 | cheap_temperature: 0.5, |
171 | | - cheap_max_tokens: 16000, |
| 172 | + cheap_max_tokens: DEFAULT_MAX_OUTPUT_TOKENS, |
172 | 173 | cheap_timeout_seconds: 300, |
173 | 174 | knowledge_model_provider: 'openai', |
174 | 175 | knowledge_model_api_key: '', |
175 | 176 | knowledge_model_base_url: '', |
176 | 177 | knowledge_model: '', |
177 | 178 | knowledge_temperature: 0.3, |
178 | | - knowledge_max_tokens: 16000, |
| 179 | + knowledge_max_tokens: DEFAULT_MAX_OUTPUT_TOKENS, |
179 | 180 | knowledge_timeout_seconds: 300, |
180 | 181 | }) |
181 | 182 |
|
|
0 commit comments