Liking cljdoc? Tell your friends :D

ajent.providers

Provider registry: knows how to reach every OpenAI-compatible backend, whether it's a local server (offline) or a hosted API (online). Built-in definitions can be overridden or extended via providers.json in the working directory.

Provider registry: knows how to reach every OpenAI-compatible backend,
whether it's a local server (offline) or a hosted API (online).
Built-in definitions can be overridden or extended via providers.json
in the working directory.
raw docstring

host->base-urlclj

(host->base-url host)

Converts a bare host URL into an OpenAI-compatible base URL. Appends /v1 unless the URL already ends in a version segment (/v1, /v4…).

Converts a bare host URL into an OpenAI-compatible base URL.
Appends /v1 unless the URL already ends in a version segment (/v1, /v4…).
sourceraw docstring

known-providersclj

(known-providers)

All available providers: built-ins deep-merged with providers.json overrides. User entries override individual fields (default-model, max-tokens, …) rather than replacing the whole definition; brand-new providers are added as-is.

All available providers: built-ins deep-merged with providers.json overrides.
User entries override individual fields (default-model, max-tokens, …)
rather than replacing the whole definition; brand-new providers are added as-is.
sourceraw docstring

provider-tableclj

(provider-table)

Human-readable list of providers (used in help output).

Human-readable list of providers (used in help output).
sourceraw docstring

resolve-providerclj

(resolve-provider provider-id)

Returns the merged definition for a provider id, or nil if unknown.

Returns the merged definition for a provider id, or nil if unknown.
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