feat: Add OpenRouter as AI provider with easy switch

- Added openrouter.ts with provider configuration
- Default provider: OpenRouter with google/gemma-3-27b-it
- Switch to Gemini via AI_PROVIDER=gemini in .env.local
- Both providers use same credit system
- OpenRouter uses OpenAI-compatible API

To switch providers, set in .env.local:
AI_PROVIDER=openrouter  # default
AI_PROVIDER=gemini      # Google Gemini
This commit is contained in:
2025-12-25 23:56:24 +01:00
parent f0f36e9c03
commit fb2a8d0f7b
3 changed files with 184 additions and 54 deletions

File diff suppressed because one or more lines are too long