Update app.py
Browse files
app.py
CHANGED
@@ -165,15 +165,15 @@ def log_to_qdrant(question: str, answer: str):
|
|
165 |
|
166 |
|
167 |
llm = ChatOpenAI(
|
168 |
-
model="deepseek
|
169 |
temperature=0,
|
170 |
max_tokens=None,
|
171 |
timeout=None,
|
172 |
max_retries=2,
|
173 |
-
|
174 |
-
|
175 |
-
api_key=CHUTES_KEY,
|
176 |
-
base_url="https://chutes-deepseek-ai-deepseek-r1.chutes.ai/v1/chat/completions",
|
177 |
stream=True,
|
178 |
|
179 |
)
|
|
|
165 |
|
166 |
|
167 |
llm = ChatOpenAI(
|
168 |
+
model="deepseek/deepseek-r1:free",
|
169 |
temperature=0,
|
170 |
max_tokens=None,
|
171 |
timeout=None,
|
172 |
max_retries=2,
|
173 |
+
api_key=OPENAPI_KEY,# if you prefer to pass api key in directly instaed of using env vars
|
174 |
+
base_url="https://openrouter.ai/api/v1",
|
175 |
+
#api_key=CHUTES_KEY,
|
176 |
+
#base_url="https://chutes-deepseek-ai-deepseek-r1.chutes.ai/v1/chat/completions",
|
177 |
stream=True,
|
178 |
|
179 |
)
|