respect false
This commit is contained in:
parent
76812ab196
commit
2fafa1290e
1 changed files with 2 additions and 2 deletions
|
|
@ -93,8 +93,8 @@ const MODEL_SUPPORTS_IMAGES: string[] = [
|
|||
];
|
||||
|
||||
function modelSupportsTools(modelDescription: ModelDescription) {
|
||||
if (modelDescription.capabilities?.tools) {
|
||||
return true;
|
||||
if (modelDescription.capabilities?.tools !== undefined) {
|
||||
return modelDescription.capabilities.tools;
|
||||
}
|
||||
const providerSupport = PROVIDER_TOOL_SUPPORT[modelDescription.provider];
|
||||
if (!providerSupport) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue