支持gimini格式,优化debug日志
This commit is contained in:
parent
e726f11bad
commit
4de6db13f9
16 changed files with 1783 additions and 55 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue