Open eeitsohg opened 5 months ago
If you have gpt4 turbo api key then add it into the .env file OPENAI_API_KEY
env variable as value
example (This is not original api_key just a string) OPEN_API_KEY = dafkjseglsgjsg;srgrgndngdngkrdgdgdrgmdrglrdgdgaadawfa
here is how you would do it.
` from getpass import getpass OPENAI_API_KEY = getpass() import os os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
from langchain_openai import OpenAI
llm = OpenAI(openai_api_key="YOUR_API_KEY", ) `
Please advise. Thanks.