import { registerAs } from '@nestjs/config';

export default registerAs('ai', () => ({
  provider: process.env.AI_PROVIDER || 'mock',
  defaultTier: process.env.AI_DEFAULT_TIER || 'primary',

  deepseek: {
    apiKey: process.env.DEEPSEEK_API_KEY || '',
    baseUrl: process.env.DEEPSEEK_BASE_URL || 'https://api.deepseek.com',
    cheapModel: process.env.DEEPSEEK_CHEAP_MODEL || 'deepseek-v4-flash',
    strongModel: process.env.DEEPSEEK_STRONG_MODEL || 'deepseek-v4-pro',
  },

  minimax: {
    apiKey: process.env.MINIMAX_API_KEY || '',
    baseUrl: process.env.MINIMAX_BASE_URL || 'https://api.minimaxi.com',
    primaryModel: process.env.MINIMAX_PRIMARY_MODEL || 'minimax-m2.7',
  },

  mockEnabled: process.env.AI_PROVIDER === 'mock',
}));
