Compatibility shim. Implementation lives in llm.sdk.providers.openai.chat.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.chat.
Data-only OpenAI-compatible provider alias specs.
These providers share the OpenAI chat-completions wire shape. Adapter code may still apply provider quirks from the profile, but the registry should not need one hand-written register-provider call per alias.
Data-only OpenAI-compatible provider alias specs. These providers share the OpenAI chat-completions wire shape. Adapter code may still apply provider quirks from the profile, but the registry should not need one hand-written register-provider call per alias.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.embeddings.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.embeddings.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.image.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.image.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.moderation.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.moderation.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.speak.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.speak.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.transcribe.
Compatibility shim. Implementation lives in llm.sdk.providers.openai.transcribe.
OpenAI audio provider family namespace.
OpenAI audio provider family namespace.
OpenAI Chat Completions transport adapter. Covers OpenAI, OpenRouter, DeepSeek, and other OpenAI-compatible providers.
OpenAI Chat Completions transport adapter. Covers OpenAI, OpenRouter, DeepSeek, and other OpenAI-compatible providers.
OpenAI embeddings adapter — POST {base}/embeddings.
Same auth and base-url plumbing as the chat adapter; we share the profile, just register an additional :profile/embed-transport- constructor on it. Other OpenAI-compat hosts that offer embeddings (Mistral, Together, Voyage, Jina, etc.) can reuse this transport by attaching the same constructor.
OpenAI embeddings adapter — POST {base}/embeddings.
Same auth and base-url plumbing as the chat adapter; we share the
profile, just register an additional :profile/embed-transport-
constructor on it. Other OpenAI-compat hosts that offer embeddings
(Mistral, Together, Voyage, Jina, etc.) can reuse this transport by
attaching the same constructor.OpenAI image generation adapter.
POST {base}/images/generations. Covers DALL-E 3, DALL-E 2, and the gpt-image-1 family. The wire body differs subtly across them (gpt-image-1 takes :quality :low|:medium|:high|:auto and returns b64_json only; DALL-E 3 takes :quality :standard|:hd and :style :vivid|:natural). The adapter passes canonical fields straight through — provider-specific values are the caller's responsibility, and the same provider-options :extra_body hatch as elsewhere covers anything we haven't surfaced.
OpenAI image generation adapter.
POST {base}/images/generations. Covers DALL-E 3, DALL-E 2, and
the gpt-image-1 family. The wire body differs subtly across them
(gpt-image-1 takes :quality :low|:medium|:high|:auto and returns
b64_json only; DALL-E 3 takes :quality :standard|:hd and :style
:vivid|:natural). The adapter passes canonical fields straight
through — provider-specific values are the caller's responsibility,
and the same provider-options :extra_body hatch as elsewhere
covers anything we haven't surfaced.OpenAI Moderations adapter.
POST {base}/moderations. omni-moderation-latest (the default since Nov 2024) accepts multi-modal input — a vector of {:type :text|:image_url} maps as well as plain strings. text-moderation-* models are text-only.
Response shape per the OpenAI Moderations API: {:id :model :results [{:flagged bool :categories {category-name bool} :category_scores {category-name float} :category_applied_input_types {category-name ["text"|"image"]}}]}
OpenAI Moderations adapter.
POST {base}/moderations. omni-moderation-latest (the default since
Nov 2024) accepts multi-modal input — a vector of {:type :text|:image_url}
maps as well as plain strings. text-moderation-* models are
text-only.
Response shape per the OpenAI Moderations API:
{:id :model
:results [{:flagged bool
:categories {category-name bool}
:category_scores {category-name float}
:category_applied_input_types {category-name ["text"|"image"]}}]}OpenAI /audio/speech adapter — POST {model, voice, input, response_format} returns raw audio bytes.
OpenAI /audio/speech adapter — POST {model, voice, input, response_format}
returns raw audio bytes.OpenAI /audio/transcriptions adapter. Wire shape is shared by Groq's /openai/v1/audio/transcriptions endpoint (same field names, same verbose_json output), so the same transport class powers both profiles.
OpenAI /audio/transcriptions adapter. Wire shape is shared by Groq's /openai/v1/audio/transcriptions endpoint (same field names, same verbose_json output), so the same transport class powers both profiles.
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 |