fix: RagChatModule 导入 AiModule,修复 AiGatewayService 未注入
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s
AiGatewayService 使用了 @Optional() 导致不报错但始终为 null, sendMessage 永远走 fallbackReply。现在导入 AiModule 正确注入。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
a784ee3bc3
commit
78e21c4c4c
@ -3,8 +3,10 @@ import { RagChatController } from './rag-chat.controller';
|
|||||||
import { AdminRagChatController } from './admin-rag-chat.controller';
|
import { AdminRagChatController } from './admin-rag-chat.controller';
|
||||||
import { RagChatService } from './rag-chat.service';
|
import { RagChatService } from './rag-chat.service';
|
||||||
import { PrismaService } from '../../infrastructure/database/prisma.service';
|
import { PrismaService } from '../../infrastructure/database/prisma.service';
|
||||||
|
import { AiModule } from '../ai/ai.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
|
imports: [AiModule],
|
||||||
controllers: [RagChatController, AdminRagChatController],
|
controllers: [RagChatController, AdminRagChatController],
|
||||||
providers: [RagChatService, PrismaService],
|
providers: [RagChatService, PrismaService],
|
||||||
exports: [RagChatService],
|
exports: [RagChatService],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user