update
This commit is contained in:
parent
73741dd583
commit
8da9e6750c
@ -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'
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user