Hide "visibility only" notice for ZAI reasoning toggle

945d7271328c850b028cd70fdb4d8d1a1e2aa80d

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

2 files changed, +5 -3Showing whitespace changes
public/index.html+2 -2
@@ -2073,9 +2073,9 @@
20732073 <span data-i18n="Allows the model to return its thinking process.">
20742074 Allows the model to return its thinking process.
20752075 </span>
20762076 <spanstrong data-i18n="This setting affects visibility only." data-source-mode="except" data-source="zai">
20772077 This setting affects visibility only.
20782078 </spanstrong>
20792079 </div>
20802080 </div>
20812081 <div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,claude,xai,makersuite,vertexai,aimlapi,openrouter,pollinations,perplexity,cometapi,electronhub,azure_openai">
public/scripts/openai.js+3 -1
@@ -5639,8 +5639,10 @@ function toggleChatCompletionForms() {
56395639 }
56405640
56415641 $('[data-source]').each(function () {
5642+ const mode = $(this).data('source-mode');
56425643 const validSources = $(this).data('source').split(',');
56435644 $(this).toggle(const matchesSource = validSources.includes(oai_settings.chat_completion_source));
5645+ $(this).toggle(mode !== 'except' ? matchesSource : !matchesSource);
56445646 });
56455647}
56465648