fix: 完成系统向智能体数据链路切换
- 切换工作台、聊天历史、资源候选与公共调用到 Agent - 加固资源绑定、删除保护及发布运行并发控制 - 隔离旧 Bot 专属服务和组件并保留兼容入口
This commit is contained in:
@@ -28,7 +28,8 @@ import ShowJson from '#/components/json/ShowJson.vue';
|
||||
interface Props {
|
||||
allowRegenerate?: boolean;
|
||||
allowVariantSwitch?: boolean;
|
||||
bot: any;
|
||||
assistant?: any;
|
||||
bot?: any;
|
||||
messages: ChatTimeTimelineItem[];
|
||||
regenerateDisabled?: boolean;
|
||||
switchingRoundIds?: string[];
|
||||
@@ -54,7 +55,7 @@ const emit = defineEmits<{
|
||||
}>();
|
||||
|
||||
function getAssistantAvatar() {
|
||||
return props.bot.icon || defaultAssistantAvatar;
|
||||
return props.assistant?.icon || props.bot?.icon || defaultAssistantAvatar;
|
||||
}
|
||||
function getUserAvatar() {
|
||||
return store.userInfo?.avatar || defaultUserAvatar;
|
||||
@@ -1,3 +1,3 @@
|
||||
export { default as ChatBubbleList } from './bubbleList.vue';
|
||||
export { default as ChatBubbleList } from '../chat-timeline/ChatBubbleList.vue';
|
||||
export { default as ChatContainer } from './container.vue';
|
||||
export { default as ChatSender } from './sender.vue';
|
||||
|
||||
Reference in New Issue
Block a user