You can add the read environment variable, it will work.
import openai
from dotenv import load_dotenv # Add
load_dotenv() # Add
openai.api_key = os.getenv("OPENAI_API_KEY")
You can add the read environment variable, it will work.
import openai
from dotenv import load_dotenv # Add
load_dotenv() # Add
openai.api_key = os.getenv("OPENAI_API_KEY")