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:
@@ -345,7 +345,7 @@ class TestTranslateWithFallbackByMode:
|
||||
mock_translate.return_value = MagicMock()
|
||||
|
||||
with patch("services.providers.config.ProvidersConfig") as mock_config:
|
||||
mock_config.get_fallback_chain.return_value = ["ollama", "openai"]
|
||||
mock_config.get_fallback_chain.return_value = ["openrouter", "openai"]
|
||||
|
||||
request = TranslationRequest(text="Hello", target_language="fr")
|
||||
translate_with_fallback_by_mode(request, mode="llm")
|
||||
|
||||
Reference in New Issue
Block a user