update
This commit is contained in:
parent
73741dd583
commit
8da9e6750c
@ -5,7 +5,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: tradus-web:1.2
|
image: tradus-web:1.3
|
||||||
container_name: tradus-web
|
container_name: tradus-web
|
||||||
ports:
|
ports:
|
||||||
- '6000:80'
|
- '6000:80'
|
||||||
|
|||||||
@ -190,12 +190,14 @@ const selectAgent = (agent: Agent) => {
|
|||||||
showConfirm('切换 Agent', `是否开启新的 Agent:${agent.name}?`, () => {
|
showConfirm('切换 Agent', `是否开启新的 Agent:${agent.name}?`, () => {
|
||||||
selectedAgent.value = agent
|
selectedAgent.value = agent
|
||||||
clearConversationId(agent.id)
|
clearConversationId(agent.id)
|
||||||
|
chatHistory.value = []
|
||||||
showConfirmDialog.value = false
|
showConfirmDialog.value = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 点击当前 Agent
|
// 点击当前 Agent
|
||||||
showConfirm('重新开始对话', '是否重新开启新会话?', () => {
|
showConfirm('重新开始对话', '是否重新开启新会话?', () => {
|
||||||
clearConversationId(agent.id)
|
clearConversationId(agent.id)
|
||||||
|
chatHistory.value = []
|
||||||
showConfirmDialog.value = false
|
showConfirmDialog.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -298,7 +300,7 @@ const sendMessage = async () => {
|
|||||||
|
|
||||||
case 'agent_thought':
|
case 'agent_thought':
|
||||||
if (data.tool) {
|
if (data.tool) {
|
||||||
const thoughtText = `AI正在调用 ${data.tool} 工具来回答问题`
|
const thoughtText = `Agent 正在调用 ${data.tool} 工具`
|
||||||
chatHistory.value[tempMessageIndex].content = currentResponseText.value
|
chatHistory.value[tempMessageIndex].content = currentResponseText.value
|
||||||
? `${thoughtText}\n\n${currentResponseText.value}`
|
? `${thoughtText}\n\n${currentResponseText.value}`
|
||||||
: thoughtText
|
: thoughtText
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user