refactor(chat): update premium token error messages for clarity and consistency

This commit is contained in:
Anish Sarkar 2026-04-29 20:17:45 +05:30
parent d5ef0d2598
commit c598d7038f
3 changed files with 11 additions and 16 deletions

View file

@ -1542,7 +1542,7 @@ async def stream_new_chat(
llm_config_id,
)
yield streaming_service.format_error(
"Premium token quota exceeded for this pinned model. Select a free model or re-select Auto (Fastest) to repin."
"Premium tokens exhausted. Buy more tokens to continue with this model, or switch to a free model."
)
yield streaming_service.format_done()
return
@ -2263,7 +2263,7 @@ async def stream_resume_chat(
llm_config_id,
)
yield streaming_service.format_error(
"Premium token quota exceeded for this pinned model. Select a free model or re-select Auto (Fastest) to repin."
"Premium tokens exhausted. Buy more tokens to continue with this model, or switch to a free model."
)
yield streaming_service.format_done()
return