mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-24 16:30:25 +00:00
Support supports_tools parameters in openai compatible models (#1068)
This commit is contained in:
parent
70092f2e78
commit
d5f7bf9073
1 changed files with 2 additions and 0 deletions
|
|
@ -184,6 +184,8 @@ def register_models(register):
|
|||
kwargs["can_stream"] = False
|
||||
if extra_model.get("supports_schema") is True:
|
||||
kwargs["supports_schema"] = True
|
||||
if extra_model.get("supports_tools") is True:
|
||||
kwargs["supports_tools"] = True
|
||||
if extra_model.get("vision") is True:
|
||||
kwargs["vision"] = True
|
||||
if extra_model.get("audio") is True:
|
||||
|
|
|
|||
Loading…
Reference in a new issue