Hide "visibility only" notice for ZAI reasoning toggle
| @@ -2073,9 +2073,9 @@ | ||
| 2073 | 2073 | <span data-i18n="Allows the model to return its thinking process."> |
| 2074 | 2074 | Allows the model to return its thinking process. |
| 2075 | 2075 | </span> |
| 2076 | 2076 | <spanstrong data-i18n="This setting affects visibility only." data-source-mode="except" data-source="zai"> |
| 2077 | 2077 | This setting affects visibility only. |
| 2078 | 2078 | </spanstrong> |
| 2079 | 2079 | </div> |
| 2080 | 2080 | </div> |
| 2081 | 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"> |
| @@ -5639,8 +5639,10 @@ function toggleChatCompletionForms() { | ||
| 5639 | 5639 | } |
| 5640 | 5640 | |
| 5641 | 5641 | $('[data-source]').each(function () { |
| 5642 | + const mode = $(this).data('source-mode'); | |
| 5642 | 5643 | const validSources = $(this).data('source').split(','); |
| 5643 | 5644 | $(this).toggle(const matchesSource = validSources.includes(oai_settings.chat_completion_source)); |
| 5645 | + $(this).toggle(mode !== 'except' ? matchesSource : !matchesSource); | |
| 5644 | 5646 | }); |
| 5645 | 5647 | } |
| 5646 | 5648 | |