api-server/src/modules/rag-chat/rag-chat.module.ts
wangdl 78e21c4c4c
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s
fix: RagChatModule 导入 AiModule,修复 AiGatewayService 未注入
AiGatewayService 使用了 @Optional() 导致不报错但始终为 null,
sendMessage 永远走 fallbackReply。现在导入 AiModule 正确注入。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 13:40:03 +08:00

15 lines
547 B
TypeScript

import { Module } from '@nestjs/common';
import { RagChatController } from './rag-chat.controller';
import { AdminRagChatController } from './admin-rag-chat.controller';
import { RagChatService } from './rag-chat.service';
import { PrismaService } from '../../infrastructure/database/prisma.service';
import { AiModule } from '../ai/ai.module';
@Module({
imports: [AiModule],
controllers: [RagChatController, AdminRagChatController],
providers: [RagChatService, PrismaService],
exports: [RagChatService],
})
export class RagChatModule {}