fix: integrate deepseek, resolve silent google api errors, fix google cloud keys
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2s
This commit is contained in:
@@ -157,6 +157,40 @@ async def get_available_providers():
|
||||
"model": model,
|
||||
})
|
||||
|
||||
# DeepSeek direct — if configured
|
||||
if _is_enabled("deepseek", key_var="DEEPSEEK_API_KEY"):
|
||||
ds_cfg = getattr(settings, "deepseek", None)
|
||||
model = _resolve_model(
|
||||
ds_cfg.model if ds_cfg else None,
|
||||
"DEEPSEEK_MODEL",
|
||||
"deepseek-chat",
|
||||
)
|
||||
available.append({
|
||||
"id": "deepseek",
|
||||
"label": "DeepSeek V3",
|
||||
"description": "Traduction IA avancée via DeepSeek",
|
||||
"mode": "llm",
|
||||
"tier": "pro",
|
||||
"model": model,
|
||||
})
|
||||
|
||||
# MiniMax direct — if configured
|
||||
if _is_enabled("minimax", key_var="MINIMAX_API_KEY"):
|
||||
mm_cfg = getattr(settings, "minimax", None)
|
||||
model = _resolve_model(
|
||||
mm_cfg.model if mm_cfg else None,
|
||||
"MINIMAX_MODEL",
|
||||
"abab6.5s-chat",
|
||||
)
|
||||
available.append({
|
||||
"id": "minimax",
|
||||
"label": "MiniMax",
|
||||
"description": "Traduction IA via MiniMax",
|
||||
"mode": "llm",
|
||||
"tier": "pro",
|
||||
"model": model,
|
||||
})
|
||||
|
||||
# z.AI / xAI Grok — if configured
|
||||
if _is_enabled("zai", key_var="ZAI_API_KEY"):
|
||||
zai_cfg = getattr(settings, "zai", None)
|
||||
|
||||
Reference in New Issue
Block a user