mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-03 21:02:40 +02:00
refactor(chat): update premium token error messages for clarity and consistency
This commit is contained in:
parent
d5ef0d2598
commit
c598d7038f
3 changed files with 11 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue