Enable tool calling for ai21

de0e65fe13b4e718b59dcbc484b8c590487d6844

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

2 files changed, +2 -1Showing whitespace changes
public/index.html+1 -1
@@ -1962,7 +1962,7 @@
1962 </span>1962 </span>
1963 </div>1963 </div>
1964 </div>1964 </div>
1965 <div class="range-block" data-source="openai,cohere,mistralai,custom,claude,openrouter,groq,deepseek,makersuite">1965 <div class="range-block" data-source="openai,cohere,mistralai,custom,claude,openrouter,groq,deepseek,makersuite,ai21">
1966 <label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">1966 <label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">
1967 <input id="openai_function_calling" type="checkbox" />1967 <input id="openai_function_calling" type="checkbox" />
1968 <span data-i18n="Enable function calling">Enable function calling</span>1968 <span data-i18n="Enable function calling">Enable function calling</span>
public/scripts/tool-calling.js+1 -0
@@ -585,6 +585,7 @@ export class ToolManager {
585 chat_completion_sources.COHERE,585 chat_completion_sources.COHERE,
586 chat_completion_sources.DEEPSEEK,586 chat_completion_sources.DEEPSEEK,
587 chat_completion_sources.MAKERSUITE,587 chat_completion_sources.MAKERSUITE,
588 chat_completion_sources.AI21,
588 ];589 ];
589 return supportedSources.includes(oai_settings.chat_completion_source);590 return supportedSources.includes(oai_settings.chat_completion_source);
590 }591 }