I use VS Code and create a conda enviroment. Then I wrote the following code:
from dotenv import load_dotenv
load_dotenv()
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="gpt-3.5-turbo",
temperature=0.7,
)
response = llm.stream("Write a poem about AI")
# print(response)
for chunk in response:
print(chunk.content, end="", flush=True)
I use conda enviroment and when I wrote dot env to terminal this is the output i get:
dotenv
Usage: dotenv [OPTIONS] COMMAND [ARGS]...
This script is used to set, get or unset values from a .env file.
I have deleted dotenv from the base(global env) and created new enviroment again to try. However any of them didn’t work. What can I do?
I tried to use the dotenv module in Anaconda, but I couldn’t get it to work. Then I created a new environment to try again, but it still didn’t work. What can I do now?
New contributor
secret is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.