Skip to content

python-sdk@0.1.14

Choose a tag to compare

@t0saki t0saki released this 09 Oct 15:47
20f9c11
fix(embedding): don't trip account breaker on request-level 400s (#5822)

A single embedding call rejected with HTTP 400 (for example an invalid
image URL in a multimodal find) opened the account-wide circuit breaker,
so every following find/search and resource embedding on that account
failed with CircuitBreakerOpen until the reset timeout elapsed.

Treat ERROR_CLASS_PERMANENT like INPUT_TOO_LARGE and AUTH: the error is
still raised to the caller but is no longer recorded on the breaker.
Transient, quota and unknown failures keep tripping it as before.