Liking cljdoc? Tell your friends :D

llm.sdk.transport.image

Sibling protocol to llm.sdk.transport/Transport, scoped to image generation endpoints.

Image generation is per-request: no streaming, no tools, no reasoning. The protocol is narrow on purpose, matching the embed/moderate/rerank pattern.

Sibling protocol to llm.sdk.transport/Transport, scoped to image
generation endpoints.

Image generation is per-request: no streaming, no tools, no
reasoning. The protocol is narrow on purpose, matching the
embed/moderate/rerank pattern.
raw docstring

ImageTransportcljprotocol

Provider-specific image generation format conversion.

Provider-specific image generation format conversion.

build-image-requestclj

(build-image-request this profile request)

Given a profile and canonical ImageGenRequest, return the native HTTP request map (:method :url :headers :body).

Given a profile and canonical ImageGenRequest, return the
native HTTP request map (:method :url :headers :body).

parse-image-errorclj

(parse-image-error this profile status body)

Given a non-2xx HTTP status and body, return a classified error map.

Given a non-2xx HTTP status and body, return a classified
error map.

parse-image-responseclj

(parse-image-response this profile raw-body)

Given a profile and parsed JSON body, return a canonical ImageGenResponse.

Given a profile and parsed JSON body, return a canonical
ImageGenResponse.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close