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