Fix prompt cost block showing when switching API type to TC and type is not OpenRouter

23e5a7ca384d8b93bf76a34c3c89e4001d853022

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

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -6752,7 +6752,7 @@ export function changeMainAPI() {
6752 $('#ai_module_block_novel').css('display', 'none');6752 $('#ai_module_block_novel').css('display', 'none');
6753 }6753 }
67546754
6755 $('#prompt_cost_block').toggle(selectedVal === 'textgenerationwebui');6755 $('#prompt_cost_block').toggle(selectedVal === 'textgenerationwebui' && textgen_settings.type === textgen_types.OPENROUTER);
67566756
6757 // Hide common settings for OpenAI6757 // Hide common settings for OpenAI
6758 console.debug('value?', selectedVal);6758 console.debug('value?', selectedVal);