import { Module, Global } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { GeminiService } from './gemini.service';
import { geminiConfig } from './gemini.config';

/**
 * Gemini AI Module
 *
 * Optional module for AI-powered features using Google Gemini API.
 * Enable by setting ENABLE_GEMINI=true in your .env file.
 */
@Global()
@Module({
  imports: [ConfigModule.forFeature(geminiConfig)],
  providers: [GeminiService],
  exports: [GeminiService],
})
export class GeminiModule {}
