Add OpenRouter provider with DeepSeek support - best value for translation (.14/M tokens)

This commit is contained in:
2025-11-30 22:10:34 +01:00
parent b65e683d32
commit 3346817a8a
7 changed files with 601 additions and 8 deletions

View File

@@ -331,7 +331,7 @@ class LanguageValidator:
class ProviderValidator:
"""Validates translation provider configuration"""
SUPPORTED_PROVIDERS = {"google", "ollama", "deepl", "libre", "openai", "webllm"}
SUPPORTED_PROVIDERS = {"google", "ollama", "deepl", "libre", "openai", "webllm", "openrouter"}
@classmethod
def validate(cls, provider: str, **kwargs) -> dict: