Refactor AI chat: streaming, tool calls, UI polish
All checks were successful
CI / check (pull_request) Successful in 3m25s

This commit is contained in:
2026-07-24 16:27:50 +08:00
parent e605586fc9
commit 8656394b9b
55 changed files with 2774 additions and 460 deletions

View File

@@ -3,18 +3,19 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { AgentToolsModule } from '../agent-tools';
import { AiConfigModule } from '../ai-config/ai-config.module';
import { AiChatController } from './ai-chat.controller';
import { AiAttachmentService } from './ai-attachment.service';
import { AiChatService } from './ai-chat.service';
import { AiModelStreamService } from './ai-model-stream.service';
import { AiConversation, AiMessage, AiToolRun } from './entities';
import { AiAttachment, AiConversation, AiMessage, AiToolRun } from './entities';
@Module({
imports: [
TypeOrmModule.forFeature([AiConversation, AiMessage, AiToolRun]),
TypeOrmModule.forFeature([AiAttachment, AiConversation, AiMessage, AiToolRun]),
AiConfigModule,
AgentToolsModule,
],
controllers: [AiChatController],
providers: [AiChatService, AiModelStreamService],
providers: [AiAttachmentService, AiChatService, AiModelStreamService],
exports: [AiChatService],
})
export class AiChatModule {}