I am unable to use the OpenAI API with my organization ID. Whenever I try to use it, I get the error: openai.error.AuthenticationError: No such organization:
Here is my code with the organization ID removed:
import os
import openai
from dotenv import load_dotenv
load_dotenv()
openai.organization = "[ORG-ID REDACTED]"
openai.api_key = os.getenv("OPENAI_API_KEY")
completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)
print(completion)