import { Module } from '@nestjs/common'
import { ChatService } from './chat.service'
import { ChatController } from './chat.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ChatHistory } from './entities/chat.entity'
import { TokenUsage } from './entities/token-usage.entity'
import { MembershipModule } from '../membership/membership.module'
import { HttpModule } from '@nestjs/axios'
import { SysConfigModule } from '../sys-config/sys-config.module'
import { ChatPdfModule } from '../chat-pdf/chat-pdf.module'
import { UsersModule } from '../users/users.module'

@Module({
    imports: [
        TypeOrmModule.forFeature([ChatHistory, TokenUsage]),
        MembershipModule,
        HttpModule,
        SysConfigModule,
        ChatPdfModule,
        UsersModule
    ],
    providers: [ChatService],
    controllers: [ChatController],
    exports: [ChatService]
})
export class ChatModule {}
