feat: unify multimodels translation providers, remove self-hosting (Ollama/LibreTranslate), and fix local SQLite configuration
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m21s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m21s
This commit is contained in:
@@ -513,12 +513,14 @@ class ProviderValidator:
|
||||
|
||||
SUPPORTED_PROVIDERS = {
|
||||
"google",
|
||||
"ollama",
|
||||
"google_cloud",
|
||||
"deepl",
|
||||
"libre",
|
||||
"openai",
|
||||
"webllm",
|
||||
"openrouter",
|
||||
"openrouter_premium",
|
||||
"deepseek",
|
||||
"minimax",
|
||||
"zai",
|
||||
"classic",
|
||||
"llm",
|
||||
}
|
||||
@@ -558,11 +560,7 @@ class ProviderValidator:
|
||||
code="missing_openai_key",
|
||||
)
|
||||
|
||||
elif normalized == "ollama":
|
||||
# Ollama doesn't require API key but may need model
|
||||
model = kwargs.get("ollama_model", "")
|
||||
if not model:
|
||||
logger.warning("No Ollama model specified, will use default")
|
||||
|
||||
|
||||
return {"provider": normalized, "validated": True}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user