支持gimini格式,优化debug日志

This commit is contained in:
h88782481 2026-03-14 09:27:15 +08:00
parent e726f11bad
commit 4de6db13f9
16 changed files with 1783 additions and 55 deletions

View file

@ -118,4 +118,8 @@ def _auto_detect(name):
其余模型默认视为 OpenAI 兼容后端
"""
lower = (name or '').lower()
return 'anthropic' if ('claude' in lower or 'anthropic' in lower) else 'openai'
if 'claude' in lower or 'anthropic' in lower:
return 'anthropic'
if 'gemini' in lower:
return 'gemini'
return 'openai'