Hide "visibility only" notice for ZAI reasoning toggle

945d7271328c850b028cd70fdb4d8d1a1e2aa80d

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

2 files changed, +5 -3Ignore whitespace
public/index.html+2 -2
@@ -2073,9 +2073,9 @@
2073 <span data-i18n="Allows the model to return its thinking process.">2073 <span data-i18n="Allows the model to return its thinking process.">
2074 Allows the model to return its thinking process.2074 Allows the model to return its thinking process.
2075 </span>2075 </span>
2076 <span data-i18n="This setting affects visibility only.">2076 <strong data-i18n="This setting affects visibility only." data-source-mode="except" data-source="zai">
2077 This setting affects visibility only.2077 This setting affects visibility only.
2078 </span>2078 </strong>
2079 </div>2079 </div>
2080 </div>2080 </div>
2081 <div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,claude,xai,makersuite,vertexai,aimlapi,openrouter,pollinations,perplexity,cometapi,electronhub,azure_openai">2081 <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() {
5639 }5639 }
56405640
5641 $('[data-source]').each(function () {5641 $('[data-source]').each(function () {
5642 const mode = $(this).data('source-mode');
5642 const validSources = $(this).data('source').split(',');5643 const validSources = $(this).data('source').split(',');
5643 $(this).toggle(validSources.includes(oai_settings.chat_completion_source));5644 const matchesSource = validSources.includes(oai_settings.chat_completion_source);
5645 $(this).toggle(mode !== 'except' ? matchesSource : !matchesSource);
5644 });5646 });
5645}5647}
56465648