Hide prompt cost block for non-TC APIs

fad1fa3a337415a1c97e0baf4e06b5be762a5f4f

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

2 files changed, +3 -1Ignore whitespace
public/index.html+1 -1
@@ -300,7 +300,7 @@
300 </label>300 </label>
301 </div>301 </div>
302 </div>302 </div>
303 <small data-tg-type="openrouter">303 <small id="prompt_cost_block" data-tg-type="openrouter">
304 <span data-i18n="Max prompt cost:">Max prompt cost:</span> <span id="or_prompt_cost">&ndash;</span>304 <span data-i18n="Max prompt cost:">Max prompt cost:</span> <span id="or_prompt_cost">&ndash;</span>
305 </small>305 </small>
306 </div>306 </div>
public/script.js+2 -0
@@ -7234,6 +7234,8 @@ export function changeMainAPI() {
7234 $('#ai_module_block_novel').css('display', 'none');7234 $('#ai_module_block_novel').css('display', 'none');
7235 }7235 }
72367236
7237 $('#prompt_cost_block').toggle(selectedVal === 'textgenerationwebui');
7238
7237 // Hide common settings for OpenAI7239 // Hide common settings for OpenAI
7238 console.debug('value?', selectedVal);7240 console.debug('value?', selectedVal);
7239 if (selectedVal == 'openai') {7241 if (selectedVal == 'openai') {