Enable tool calling for ai21

This commit is contained in:
Cohee 2025-03-08 17:25:37 +02:00
parent ff5835278b
commit de0e65fe13
2 changed files with 2 additions and 1 deletions

View File

@ -1962,7 +1962,7 @@
</span>
</div>
</div>
<div class="range-block" data-source="openai,cohere,mistralai,custom,claude,openrouter,groq,deepseek,makersuite">
<div class="range-block" data-source="openai,cohere,mistralai,custom,claude,openrouter,groq,deepseek,makersuite,ai21">
<label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">
<input id="openai_function_calling" type="checkbox" />
<span data-i18n="Enable function calling">Enable function calling</span>

View File

@ -585,6 +585,7 @@ export class ToolManager {
chat_completion_sources.COHERE,
chat_completion_sources.DEEPSEEK,
chat_completion_sources.MAKERSUITE,
chat_completion_sources.AI21,
];
return supportedSources.includes(oai_settings.chat_completion_source);
}