Skip to content

DreamBadRequest

class DreamBadRequest(DreamConfigError, DreamServerError)

Importable as dream.DreamBadRequest.

The model refused the request as malformed (DA-4000); never retryable, the request must change.

reason says why: unknown_checkpoint (use an id DreamClient.get_models() lists, or a job’s fine_tuned_model), too_large (the camera frames are too big: lower the resolution or the JPEG quality), client_outdated (this library is not the build the model’s server runs, after a deploy: the message ends with the one command that installs the current library from your platform) or malformed. A DreamConfigError, because the config or the observation must change, that also carries the answer’s code and reason like every other refusal, so reason tells the cases apart without parsing the message.

Raised by