Enable tool calling for ai21

de0e65fe13b4e718b59dcbc484b8c590487d6844

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -1Ignore whitespace
public/index.html+1 -1
@@ -1962,7 +1962,7 @@
19621962 </span>
19631963 </div>
19641964 </div>
19651965 <div class="range-block" data-source="openai,cohere,mistralai,custom,claude,openrouter,groq,deepseek,makersuite,ai21">
19661966 <label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">
19671967 <input id="openai_function_calling" type="checkbox" />
19681968 <span data-i18n="Enable function calling">Enable function calling</span>
public/scripts/tool-calling.js+1 -0
@@ -585,6 +585,7 @@ export class ToolManager {
585585 chat_completion_sources.COHERE,
586586 chat_completion_sources.DEEPSEEK,
587587 chat_completion_sources.MAKERSUITE,
588+ chat_completion_sources.AI21,
588589 ];
589590 return supportedSources.includes(oai_settings.chat_completion_source);
590591 }