Skip to content

houllette/kino_openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KinoOpenAI

OpenAI integration with Kino for Livebook

Heavily inspired by kino_slack and kino_bumblebee, uses the OpenAI library under the hood.

Installation

To bring KinoOpenAI to Livebook all you need to do is at it too Mix.install/2 and set your session Evironment variables OPEN_AI_API_KEY and OPEN_AI_ORGANIZATION_ID (we need to add LB_ to the variable names in the Setup section, but they are already added behind the scenes when you use the Livebook Secrets Manager)

Mix.install(
  [
    {:kino_openai, "~> 0.1.0"}
  ],
  config: [
    open_ai: [
      api_key: System.get_env("LB_OPEN_AI_API_KEY"),
      organization: System.get_env("LB_OPEN_AI_ORGANIZATION_ID")
    ]
  ]
)

About

OpenAI Integration for Livebook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published