openlm icon indicating copy to clipboard operation
openlm copied to clipboard

Getting error ValueError: OPENAI_API_KEY is not set or passed as an argument

Open pst2154 opened this issue 1 year ago • 1 comments

tried with version .5 and .4 on pypi

import openlm as openai
import json

completion = openai.Completion.create(
    model="ada", 
    prompt="Hello world",
)
print(json.dumps(completion, indent=4))

if I use openai instead it runs perfectly fine

import openai as openai

pst2154 avatar May 27 '23 18:05 pst2154