Liking cljdoc? Tell your friends :D

wagoe.ai.shell.providers.openai

OpenAI API provider adapter.

Implements IAIProvider against the OpenAI Chat Completions API. Requires an API key in the configuration.

OpenAI API provider adapter.

Implements IAIProvider against the OpenAI Chat Completions API.
Requires an API key in the configuration.
raw docstring

create-openai-providerclj

(create-openai-provider {:keys [base-url api-key model timeout]})

Create an OpenAIProvider.

Args: config - map with: :base-url - API base URL (default "https://api.openai.com") :api-key - API key string (required) :model - model ID (default "gpt-4o-mini")

Returns: OpenAIProvider record.

Create an OpenAIProvider.

Args:
  config - map with:
    :base-url - API base URL (default "https://api.openai.com")
    :api-key  - API key string (required)
    :model    - model ID (default "gpt-4o-mini")

Returns:
  OpenAIProvider record.
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