Fix prompt cost block showing when switching API type to TC and type is not OpenRouter
| @@ -6752,7 +6752,7 @@ export function changeMainAPI() { | ||
| 6752 | 6752 | $('#ai_module_block_novel').css('display', 'none'); |
| 6753 | 6753 | } |
| 6754 | 6754 | |
| 6755 | 6755 | $('#prompt_cost_block').toggle(selectedVal === 'textgenerationwebui' && textgen_settings.type === textgen_types.OPENROUTER); |
| 6756 | 6756 | |
| 6757 | 6757 | // Hide common settings for OpenAI |
| 6758 | 6758 | console.debug('value?', selectedVal); |