Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 572 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 572 Bytes

Openai

Elixir client for OpenAI.

Installation

Adding openai to your list of dependencies in mix.exs:

def deps do
  [
    {:openai_client, "~> 0.4"}
  ]
end

Configuration

You can configure the client via config.exs:

config :openai_client,
  api_key: "your-api-key",
  organization: "your-organization"

You can also specify the configuration options directly when initially a client. This will override any global config options.

Openai.Client.new(api_key: "your-api-key", organization: "your-organization")