Answer the second round: the judge's reset is text, one-line limit messages, plainer docstring
This commit is contained in:
@@ -95,7 +95,8 @@ def hit_limit(event: dict) -> bool:
|
||||
|
||||
|
||||
def limit_said(event: dict) -> str:
|
||||
return result if isinstance(result := event.get("result"), str) else "claude said nothing more"
|
||||
said = " ".join(result.split()) if isinstance(result := event.get("result"), str) else ""
|
||||
return said or "claude gave no message"
|
||||
|
||||
|
||||
# {"type": "rate_limit_event", "rate_limit_info": {"status": "rejected", "resetsAt": 1790790000, ...}}
|
||||
|
||||
Reference in New Issue
Block a user