diff --git a/frontend/src/views/inference/InferenceChatView.vue b/frontend/src/views/inference/InferenceChatView.vue index 1be69a5..679a0ce 100644 --- a/frontend/src/views/inference/InferenceChatView.vue +++ b/frontend/src/views/inference/InferenceChatView.vue @@ -30,6 +30,9 @@ const task = ref(null) const messages = ref([]) const inputQuestion = ref('') const systemPrompt = ref('') +const temperature = ref(0.7) +const top_p = ref(0.95) +const maxTokens = ref(2048) const contentRef = ref() /** 设置面板抽屉 */ const showSettings = ref(false) @@ -104,8 +107,9 @@ async function handleSend() { model_path: '', system_prompt: systemPrompt.value, user_question: question, - temperature: 0.7, - max_tokens: 2048, + temperature: temperature.value, + top_p: top_p.value, + max_tokens: maxTokens.value, }) // 完成后同步最终内容 @@ -288,8 +292,21 @@ onMounted(loadTask) resize="none" /> + + + + + + + + + + + + + - + 清空当前对话