Liking cljdoc? Tell your friends :D

llm.sdk.providers.openrouter.chat

OpenRouter transport adapter. Builds on OpenAI Chat Completions with OpenRouter-specific quirks:

  • provider preferences routing in extra_body
  • Pareto Code router plugin
  • reasoning config in extra_body (not top-level)
  • special model naming and error handling.
OpenRouter transport adapter.
Builds on OpenAI Chat Completions with OpenRouter-specific quirks:
- provider preferences routing in extra_body
- Pareto Code router plugin
- reasoning config in extra_body (not top-level)
- special model naming and error handling.
raw docstring

build-request-openrouterclj

(build-request-openrouter profile request)

Build an OpenRouter request. Delegates to OpenAI Chat adapter for base structure, then injects OpenRouter-specific extra_body fields.

Build an OpenRouter request.
Delegates to OpenAI Chat adapter for base structure, then injects
OpenRouter-specific extra_body fields.
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