From b5302bcd27b5763a1eec20b643ce11ead512cbbc Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Sun, 24 Nov 2024 18:25:31 -0500 Subject: [PATCH] Need separate message for 100% usage vs rate limits --- Source/Chatbook/SendChat.wl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Chatbook/SendChat.wl b/Source/Chatbook/SendChat.wl index 8b07493e..bb32221f 100644 --- a/Source/Chatbook/SendChat.wl +++ b/Source/Chatbook/SendChat.wl @@ -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 |> |>,