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

export default registerAs('openai', () => ({
  apiKey: process.env.OPENAI_API_KEY,
  baseURL: process.env.OPENAI_BASE_URL,
  model: process.env.OPENAI_MODEL || 'gpt-4-turbo-preview',
  // AI分析配置
  maxTokens: 2000,
  temperature: 0.7,
  // 请求限制
  maxRequestsPerMinute: 20,
  // 缓存配置
  cacheTTL: 300, // 5分钟
}));
