Skip to content

PS5SD 0.9.15

Choose a tag to compare

@Darkatek7 Darkatek7 released this 27 Oct 22:41
· 57 commits to main since this release

PS5SD 0.9.15 starts on 1.0's promise of an API that programs can rely on: one shape for every error, and the progress of a run as server-sent events.

One shape for every error

  • Every answer of 400 and more, on every route (A1111, OpenAI, sd-server's own and PS5SD's), is now {"error": {"code": "...", "message": "..."}}, the shape a failed job already had.
  • code is for programs: out_of_memory, queue_full, standby, switching, model_not_found, in_use, unauthorized, rate_limited and more. API.md lists them all.
  • A body that is not JSON is now 400 invalid_request instead of 500.
  • For clients: an error's error is an object now, not a text. The fields auth_required and standby are gone; they are the codes unauthorized and standby.

Progress as server-sent events

  • GET /ps5sd/v1/events streams the queue (jobs), every step (progress, with the time left) and each job's end (job), with a ping every 15 s so a proxy keeps it open.
  • ?job=<id> follows one job and ends after it.
  • At most four streams are open at once. A model switch ends them without waiting for them.
  • API.md, Events has the details.

The web UI on the stream

  • The page reads the queue from the stream and asks for its job only when the stream says it moved, so an idle Create tab sends no requests.
  • Without the stream (an older console, a browser without EventSource, a fifth tab) it polls as before.

Install

Install from the homebrew store, or unpack PPSA99576.zip into /data/homebrew/ on the console and let ShadowMountPlus scan.

Next: see ROADMAP.md.