This commit is contained in:
aaron 2025-05-11 11:13:44 +08:00
parent 73741dd583
commit 8da9e6750c
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: tradus-web:1.2
image: tradus-web:1.3
container_name: tradus-web
ports:
- '6000:80'

View File

@ -190,12 +190,14 @@ const selectAgent = (agent: Agent) => {
showConfirm('切换 Agent', `是否开启新的 Agent${agent.name}`, () => {
selectedAgent.value = agent
clearConversationId(agent.id)
chatHistory.value = []
showConfirmDialog.value = false
})
} else {
// Agent
showConfirm('重新开始对话', '是否重新开启新会话?', () => {
clearConversationId(agent.id)
chatHistory.value = []
showConfirmDialog.value = false
})
}
@ -298,7 +300,7 @@ const sendMessage = async () => {
case 'agent_thought':
if (data.tool) {
const thoughtText = `AI正在调用 ${data.tool} 工具来回答问题`
const thoughtText = `Agent 正在调用 ${data.tool} 工具`
chatHistory.value[tempMessageIndex].content = currentResponseText.value
? `${thoughtText}\n\n${currentResponseText.value}`
: thoughtText