import { Module } from '@nestjs/common';
import { ApiController } from './api.controller';
import { ApiService } from './api.service';
import { ApiV1Controller } from './api-v1.controller';
import { KnowledgeBaseModule } from '../knowledge-base/knowledge-base.module';
import { AuthModule } from '../auth/auth.module';
import { TenantModule } from '../tenant/tenant.module';
import { ModelConfigModule } from '../model-config/model-config.module';
import { RagModule } from '../rag/rag.module';
import { ChatModule } from '../chat/chat.module';
import { UserModule } from '../user/user.module';
import { MulterModule } from '@nestjs/platform-express';
import { memoryStorage } from 'multer';

@Module({
  imports: [
    KnowledgeBaseModule,
    AuthModule,
    ModelConfigModule,
    RagModule,
    ChatModule,
    UserModule,
    TenantModule,
    MulterModule.register({ storage: memoryStorage() }),
  ],
  controllers: [ApiController, ApiV1Controller],
  providers: [ApiService],
})
export class ApiModule { }
