Liking cljdoc? Tell your friends :D
Clojure only.

llm.sdk.moderate

Driver for moderation requests — the moderate counterpart to llm.sdk/complete and llm.sdk/embed.

Resolves the provider profile, picks up its :profile/moderation-transport-constructor, builds the request, and returns a canonical ModerationResponse.

Providers without a moderation transport throw ex-info rather than NullPointer.

Driver for moderation requests — the moderate counterpart to
llm.sdk/complete and llm.sdk/embed.

Resolves the provider profile, picks up its
:profile/moderation-transport-constructor, builds the request, and
returns a canonical ModerationResponse.

Providers without a moderation transport throw ex-info rather
than NullPointer.
raw docstring

moderateclj

(moderate provider-id request & {:keys [config]})

Send a canonical ModerationRequest and return a ModerationResponse.

:moderation/inputs is a vector of either plain strings (for text- only moderation) or {:type :text :text "..."} / {:type :image_url :image_url "https://..."} maps. The OpenAI omni-moderation models accept the multi-modal shape.

Send a canonical ModerationRequest and return a ModerationResponse.

:moderation/inputs is a vector of either plain strings (for text-
only moderation) or {:type :text :text "..."} / {:type :image_url
:image_url "https://..."} maps. The OpenAI omni-moderation models
accept the multi-modal shape.
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