import { SecretService } from "@buildingai/core";
import { TypeOrmModule } from "@buildingai/db/@nestjs/typeorm";
import { AiModel, SecretTemplate } from "@buildingai/db/entities";
import { AiProvider } from "@buildingai/db/entities";
import { Dict } from "@buildingai/db/entities";
import { Module } from "@nestjs/common";

import { AiProviderConsoleController } from "./controllers/console/ai-provider.controller";
import { AiProviderWebController } from "./controllers/web/ai-provider.controller";
import { AiProviderService } from "./services/ai-provider.service";

/**
 * AI供应商模块
 */
@Module({
    imports: [TypeOrmModule.forFeature([Dict, AiProvider, AiModel, SecretTemplate])],
    controllers: [AiProviderConsoleController, AiProviderWebController],
    providers: [AiProviderService, SecretService],
    exports: [AiProviderService],
})
export class AiProviderModule {}
