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.
(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.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |