Poonawala commited on
Commit
95613e0
·
verified ·
1 Parent(s): b947dc9

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +16 -16
config.py CHANGED
@@ -1,17 +1,17 @@
1
- from langchain_openai import ChatOpenAI
2
- from langchain_openai import OpenAIEmbeddings
3
-
4
- import os
5
- from dotenv import load_dotenv
6
- load_dotenv()
7
-
8
- # os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
9
- os.environ["OPENAI_API_KEY"] = ""
10
- model_name = os.getenv("MODEL_NAME")
11
- mini_model_name = os.getenv("MINI_MODEL_NAME")
12
- embedding_model = os.getenv("EMBEDDING_MODEL")
13
-
14
- llm = ChatOpenAI(model=model_name)
15
- llm2 = ChatOpenAI(model=mini_model_name)
16
-
17
  embeddings = OpenAIEmbeddings(model=embedding_model)
 
1
+ from langchain_openai import ChatOpenAI
2
+ from langchain_openai import OpenAIEmbeddings
3
+
4
+ import os
5
+ from dotenv import load_dotenv
6
+ load_dotenv()
7
+
8
+ # os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
9
+ os.environ["OPENAI_API_KEY"] = "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"
10
+ model_name = os.getenv("MODEL_NAME")
11
+ mini_model_name = os.getenv("MINI_MODEL_NAME")
12
+ embedding_model = os.getenv("EMBEDDING_MODEL")
13
+
14
+ llm = ChatOpenAI(model=model_name)
15
+ llm2 = ChatOpenAI(model=mini_model_name)
16
+
17
  embeddings = OpenAIEmbeddings(model=embedding_model)