mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 05:12:38 +02:00
feat(chat): add userId to premium alert handling and improve alert visibility in UI
This commit is contained in:
parent
901de33684
commit
e6db050dfd
4 changed files with 21 additions and 6 deletions
|
|
@ -1581,7 +1581,7 @@ async def stream_new_chat(
|
|||
)
|
||||
else:
|
||||
yield streaming_service.format_error(
|
||||
"Buy more tokens to continue with this model, or switch to a free model.",
|
||||
"Buy more tokens to continue with this model, or switch to a free model",
|
||||
error_code="PREMIUM_QUOTA_EXHAUSTED",
|
||||
)
|
||||
yield streaming_service.format_done()
|
||||
|
|
@ -2349,7 +2349,7 @@ async def stream_resume_chat(
|
|||
)
|
||||
else:
|
||||
yield streaming_service.format_error(
|
||||
"Buy more tokens to continue with this model, or switch to a free model.",
|
||||
"Buy more tokens to continue with this model, or switch to a free model",
|
||||
error_code="PREMIUM_QUOTA_EXHAUSTED",
|
||||
)
|
||||
yield streaming_service.format_done()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue