finance-api/src/config/ai.config.ts
Заид Омар Медхат 33602d0fe9 chore: initialize NestJS project with Docker and environment configuration
Add project scaffolding and development infrastructure:
- Add environment configuration files (.env.development, .env.example) with database, JWT, security, AI integration, logging, and CORS settings
- Add .gitignore to exclude build artifacts, logs, IDE files, and environment variables
- Add .prettierrc with single quotes and trailing commas configuration
- Add multi-stage Dockerfile with development, build, and production stages
- Ad
2025-12-13 15:45:08 +05:00

9 lines
319 B
TypeScript

import { registerAs } from '@nestjs/config';
export default registerAs('ai', () => ({
deepseekApiKey: process.env.DEEPSEEK_API_KEY || '',
openrouterApiKey: process.env.OPENROUTER_API_KEY || '',
serviceUrl: process.env.AI_SERVICE_URL || 'http://localhost:8000',
enabled: process.env.AI_ENABLED === 'true',
}));