Skip to content

withbroadcast/openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

Elixir Client for OpenAI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages