Elixir client for OpenAI.
Adding openai
to your list of dependencies in mix.exs
:
def deps do
[
{:openai_client, "~> 0.4"}
]
end
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")