def again.status

bend-kit-llm@0.13.0.1 · llm.bend:255

import bend-kit-llm@0.13.0.1/llm.bend as Llm
import Base

255# Statuses a later try may clear: 408, 409, 429, and 5xx, which holds Anthropic's 529.
256def again.status(+s: U32) -> Bool:
257  Bool.or(Bool.or(U32.is_eq(s, 408), U32.is_eq(s, 409)), Bool.or(U32.is_eq(s, 429), U32.is_le(500, s)))

Uses (5)

Used by (1)