← Về thư mục
openai4s/llm/models.py
- LLMError · class · L9-L10 — class LLMError(RuntimeError)
- MissingCredentialError · class · L13-L19 — class MissingCredentialError(LLMError)
- TransportError · class · L22-L84 — class TransportError(LLMError)
- init · method · L41-L66 — def init( self, message: str, *, provider: str | None = None, operation: str | None = None, status: int | None = None, error_code: str | None = None, headers: dict[str, str] | None = None, request_id: str | None = None, retryable: bool = False, retry_after: float | None = None, output_committed: bool = False, body: str | None = None, ) -> None
- is_rate_limit · method · L69-L70 — def is_rate_limit(self) -> bool
- to_dict · method · L72-L84 — def to_dict(self) -> dict
- llm_failure_code · function · L94-L111 — def llm_failure_code(exc: BaseException) -> str | None
- status_is_retryable · function · L120-L121 — def status_is_retryable(status: int | None) -> bool
- parse_retry_after · function · L124-L147 — def parse_retry_after(value: str | None, *, now: float | None = None) -> float | None