Skip to content

ibm-developer-skills-network/zezly-Sales_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python3.11 -m pip install llama_index
python3.11 -m pip install gradio

Use Environment Variables in place of your API key

Set your ‘OPENAI_API_KEY’ Environment Variable using bash. Run the following command in your terminal, replacing yourkey with your API key.

export OPENAI_API_KEY='yourkey'

You’re all set! You can now reference the key in curl or load it in your Python:

import os
import openai
 
openai.api_key = os.environ["OPENAI_API_KEY"]

Releases

No releases published

Packages

No packages published

Languages