Liking cljdoc? Tell your friends :D

llm.sdk.providers.openrouter.chat

OpenRouter chat-completions transport. OpenRouter extends the OpenAI wire shape with top-level provider routing, plugins, reasoning, session routing, and detailed usage.

OpenRouter chat-completions transport.
OpenRouter extends the OpenAI wire shape with top-level provider routing,
plugins, reasoning, session routing, and detailed usage.
raw docstring

build-request-openrouterclj

(build-request-openrouter profile request)

Build an OpenRouter Chat Completions request. The shared OpenAI adapter supplies the compatible core fields; OpenRouter extensions are flattened into the top-level request object.

Build an OpenRouter Chat Completions request.
The shared OpenAI adapter supplies the compatible core fields; OpenRouter
extensions are flattened into the top-level request object.
sourceraw docstring

make-transportclj

(make-transport)
source

parse-error-openrouterclj

(parse-error-openrouter _profile status body)
source

parse-response-openrouterclj

(parse-response-openrouter profile raw)
source

parse-stream-event-openrouterclj

(parse-stream-event-openrouter profile line)
source

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