NanoGPT: Enable tool calling Closes #4930
| @@ -1974,7 +1974,7 @@ | ||
| 1974 | 1974 | </b> |
| 1975 | 1975 | </div> |
| 1976 | 1976 | </div> |
| 1977 | 1977 | <div class="range-block" data-source="openai,cohere,mistralai,custom,claude,aimlapi,openrouter,groq,siliconflow,deepseek,makersuite,vertexai,ai21,xai,pollinations,moonshot,fireworks,cometapi,electronhub,chutes,azure_openai,zai,nanogpt"> |
| 1978 | 1978 | <label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand"> |
| 1979 | 1979 | <input id="openai_function_calling" type="checkbox" /> |
| 1980 | 1980 | <span data-i18n="Enable function calling">Enable function calling</span> |
| @@ -661,6 +661,7 @@ export class ToolManager { | ||
| 661 | 661 | chat_completion_sources.AZURE_OPENAI, |
| 662 | 662 | chat_completion_sources.ZAI, |
| 663 | 663 | chat_completion_sources.SILICONFLOW, |
| 664 | + chat_completion_sources.NANOGPT, | |
| 664 | 665 | ]; |
| 665 | 666 | return supportedSources.includes(settings.chat_completion_source); |
| 666 | 667 | } |