distill::teacher
More...
Classes
Attributes
Detailed Description
Multi-backend teacher API client with cost controls, retry, and circuit breaker.
Dispatches teacher calls to the correct backend (OpenAI or Anthropic) based on the
model's configured endpoint ``apiType``. All backends produce a uniform response
wrapper so callers receive the same interface regardless of backend.
Attributes Documentation
variable HTTP_NON_RETRYABLE
dict HTTP_NON_RETRYABLE = {400, 401, 402, 403, 404, 405, 422};
variable HTTP_RATE_LIMIT
int HTTP_RATE_LIMIT = 429;
variable NON_RETRYABLE_EXCEPTIONS
tuple NON_RETRYABLE_EXCEPTIONS = (
BudgetExceededError,
CircuitBreakerOpenError,
TeacherConfigError,
BackendNotFoundError,
);
Updated on 2026-07-25 at 22:56:57 +0000