OpenAI integration with Kino for Livebook
Heavily inspired by kino_slack and kino_bumblebee, uses the OpenAI library under the hood.
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")
]
]
)