stanford_alpaca
stanford_alpaca copied to clipboard
about generate instructions
Thanks for your valuable work! I have a question: during generating new instructions by using text-davinci-003, if I want to use my openai API key, should I change the following code in utils.py to something like openai.api_key = <my_api_key>?
openai_org = os.getenv("OPENAI_ORG")
if openai_org is not None:
openai.organization = openai_org
logging.warning(f"Switching to organization: {openai_org} for OAI API key.")
set the environment variable. probably thats the variable OPENAI_ORG In linux you can do following
export OPENAI_ORG="your-api-key"