CDA

Results 2 comments of CDA

I think you should try importing from langchain.chat_models import ChatOpenAI instead. What works for me is the following: db = SQLDatabase.from_uri(f"postgresql+psycopg2://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}") llm = ChatOpenAI(model_id="gpt-3.5-turbo-16k", temperature=0) toolkit = SQLDatabaseToolkit(db=db, llm=llm) agent_executor...

> The suggestions works for me. General assumption but are you on a paid account with openAI? Once I paid for API access, the code everyone here recommended began to...