feat: integrate Google Generative AI as a fallback for OpenRouter in translation and chat services

This commit is contained in:
Your Name
2026-03-31 19:42:08 +02:00
parent e7fa0730c6
commit 42b1ad1250
6 changed files with 325 additions and 10 deletions

View File

@@ -20,6 +20,10 @@ OPENROUTER_API_KEY=
OPENROUTER_MODEL=nvidia/nemotron-3-super-120b-a12b:free
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1/chat/completions
# Google Generative AI (fallback provider)
GOOGLE_API_KEY=AIzaSyAKUp_qGpJPFMaDxIe6x3PjV4ghRTQuZ3Q
GOOGLE_MODEL=chat-bison-001
# Premium document translation (recommended for Translate PDF)
DEEPL_API_KEY=
DEEPL_API_URL=https://api-free.deepl.com/v2/translate