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 @@
300300 </label>
301301 </div>
302302 </div>
303303 <small id="prompt_cost_block" data-tg-type="openrouter">
304304 <span data-i18n="Max prompt cost:">Max prompt cost:</span> <span id="or_prompt_cost">&ndash;</span>
305305 </small>
306306 </div>
public/script.js+2 -0
@@ -7234,6 +7234,8 @@ export function changeMainAPI() {
72347234 $('#ai_module_block_novel').css('display', 'none');
72357235 }
72367236
7237+ $('#prompt_cost_block').toggle(selectedVal === 'textgenerationwebui');
7238+
72377239 // Hide common settings for OpenAI
72387240 console.debug('value?', selectedVal);
72397241 if (selectedVal == 'openai') {