Skip to content

Commit

Permalink
Merge pull request #952 from WolframResearch/feature/LLM-699_ErrorBlobs
Browse files Browse the repository at this point in the history
Need separate message for 100% usage vs rate limits
  • Loading branch information
rhennigan authored Nov 24, 2024
2 parents ebd314b + b5302bc commit 7761527
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 7761527

Please sign in to comment.