File size: 304 Bytes
bca3a10
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import os

from dotenv import load_dotenv
from langchain_openai import ChatOpenAI, OpenAIEmbeddings

load_dotenv()

gpt3 = ChatOpenAI(model='gpt-3.5-turbo-0125', openai_api_key=os.environ['OPENAI_KEY'])
embedder = OpenAIEmbeddings(model='text-embedding-ada-002', openai_api_key=os.environ['OPENAI_KEY'])