Skip to content

Commit

Permalink
Need separate message for 100% usage vs rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Nov 24, 2024
1 parent 18436f9 commit b5302bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Chatbook/SendChat.wl
Original file line number Diff line number Diff line change
Expand Up @@ -2607,7 +2607,11 @@ errorCell // beginDefinition;

errorCell[ as_ ] /; ! FreeQ[ as, $$usageLimitCode ] :=
Cell[
BoxData @ ToBoxes @ errorMessageBox[ "UsageBlocked" ],
BoxData @ ToBoxes @
If[ ! FreeQ[ as, "credits-per-month-limit-exceeded" ],
errorMessageBox[ "UsageAt100" ],
errorMessageBox[ "UsageBlocked" ]
],
"Text",
CellAutoOverwrite -> True,
CellTrayWidgets -> <| "ChatFeedback" -> <| "Visible" -> False |> |>,
Expand Down

0 comments on commit b5302bc

Please sign in to comment.