NanoGPT: Enable tool calling Closes #4930

0c8d74da029e51c0b55e745fa016a14304113970

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

2 files changed, +2 -1Showing whitespace changes
public/index.html+1 -1
@@ -1974,7 +1974,7 @@
1974 </b>1974 </b>
1975 </div>1975 </div>
1976 </div>1976 </div>
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">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 <label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">1978 <label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">
1979 <input id="openai_function_calling" type="checkbox" />1979 <input id="openai_function_calling" type="checkbox" />
1980 <span data-i18n="Enable function calling">Enable function calling</span>1980 <span data-i18n="Enable function calling">Enable function calling</span>
public/scripts/tool-calling.js+1 -0
@@ -661,6 +661,7 @@ export class ToolManager {
661 chat_completion_sources.AZURE_OPENAI,661 chat_completion_sources.AZURE_OPENAI,
662 chat_completion_sources.ZAI,662 chat_completion_sources.ZAI,
663 chat_completion_sources.SILICONFLOW,663 chat_completion_sources.SILICONFLOW,
664 chat_completion_sources.NANOGPT,
664 ];665 ];
665 return supportedSources.includes(settings.chat_completion_source);666 return supportedSources.includes(settings.chat_completion_source);
666 }667 }