refactor: 移除通用频道管理(LangBot)模块,IM Bot 改为直接对接;迁移 _call_real_llm 至 im_llm

This commit is contained in:
QihuAI Design committed 2026-07-14 08:21:56 +08:00
1 parent 945eeb8ba0
commit ab54d7344c
15 files changed
+3208 -8784

No files matched your search

+2 -8
View File
@@ -2,7 +2,7 @@
// 分离的Mock数据层,便于后续接入真实后端时替换
import type {
User, Conversation, Message, Channel, KnowledgeBase,
User, Conversation, Message, KnowledgeBase,
KnowledgeDocument, MarketApp, AppReview, TokenUsageLog,
TokenBalance, Order, MembershipPlan, Coupon, UserCoupon,
Notification, ModelProvider, AIModel, SiteSettings,
@@ -97,13 +97,7 @@ export const mockMessages: Record<string, Message[]> = {
],
};
// ==================== 频道数据 (IM账户绑定) ====================
export const mockChannels: Channel[] = [
{ id: 'ch1', userId: 'u1', platform: 'feishu', name: '飞书AI助手', accountName: 'zangsan@company.feishu.cn', agentId: 'a1', knowledgeBaseId: 'kb1', status: 'connected', lastActive: '2026-05-26T09:30:00Z', boundModel: 'DeepSeek-V3', features: ['AI对话', '文档问答', '任务提醒', '会议纪要'], createdAt: '2026-04-01T08:00:00Z' },
{ id: 'ch2', userId: 'u1', platform: 'dingtalk', name: '钉钉AI助理', accountName: '张经理', agentId: 'a2', knowledgeBaseId: 'kb2', status: 'connected', lastActive: '2026-05-26T08:15:00Z', boundModel: 'GPT-4o', features: ['AI对话', '审批辅助', '日程管理'], createdAt: '2026-04-15T10:00:00Z' },
{ id: 'ch3', userId: 'u1', platform: 'wechat', name: '微信AI伙伴', accountName: 'wxid_abc123', agentId: undefined, knowledgeBaseId: undefined, status: 'pending', lastActive: undefined, boundModel: 'DeepSeek-V3', features: ['AI对话', '内容创作'], createdAt: '2026-05-01T09:00:00Z' },
{ id: 'ch4', userId: 'u1', platform: 'telegram', name: 'Telegram Bot', accountName: '@aiflow_bot', agentId: undefined, knowledgeBaseId: undefined, status: 'disconnected', lastActive: '2026-05-10T14:00:00Z', boundModel: 'Qwen-Max', features: ['AI对话'], createdAt: '2026-05-10T14:00:00Z' },
];
// ==================== 知识库数据 ====================
export const mockKnowledgeBases: KnowledgeBase[] = [