Update app.py
Browse files
app.py
CHANGED
@@ -143,32 +143,32 @@ def log_to_qdrant(question: str, answer: str):
|
|
143 |
except Exception as e:
|
144 |
logger.error(f"Failed to log to Qdrant: {e}")
|
145 |
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
#max_tokens=None,
|
150 |
-
#timeout=None,
|
151 |
-
#max_retries=2,
|
152 |
-
#api_key=GEMINI,
|
153 |
-
#stream=True,
|
154 |
-
#)
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
llm = ChatOpenAI(
|
159 |
-
model="meta-llama/llama-4-maverick:free",
|
160 |
-
temperature=0.1,
|
161 |
max_tokens=None,
|
162 |
timeout=None,
|
163 |
-
max_retries=
|
164 |
-
api_key=
|
165 |
-
# base_url="https://openrouter.ai/api/v1",
|
166 |
stream=True,
|
167 |
-
# api_key=CHUTES_KEY,
|
168 |
-
base_url="https://openrouter.ai/api/v1",
|
169 |
-
|
170 |
)
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
template = """
|
173 |
Your Name is Maxwell , a specialized AI assistant for the Mawared HR System, designed to deliver accurate and contextually relevant support based solely on the provided context and chat history.
|
174 |
|
|
|
143 |
except Exception as e:
|
144 |
logger.error(f"Failed to log to Qdrant: {e}")
|
145 |
|
146 |
+
llm = ChatGoogleGenerativeAI(
|
147 |
+
model="gemini-2.5-flash",
|
148 |
+
temperature=0.3,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
max_tokens=None,
|
150 |
timeout=None,
|
151 |
+
max_retries=2,
|
152 |
+
api_key=GEMINI,
|
|
|
153 |
stream=True,
|
|
|
|
|
|
|
154 |
)
|
155 |
|
156 |
+
|
157 |
+
|
158 |
+
# llm = ChatOpenAI(
|
159 |
+
# model="meta-llama/llama-4-maverick:free",
|
160 |
+
# temperature=0.1,
|
161 |
+
# max_tokens=None,
|
162 |
+
# timeout=None,
|
163 |
+
# max_retries=3,
|
164 |
+
# api_key=OPENAPI_KEY,# if you prefer to pass api key in directly instaed of using env vars
|
165 |
+
# # base_url="https://openrouter.ai/api/v1",
|
166 |
+
# stream=True,
|
167 |
+
# # api_key=CHUTES_KEY,
|
168 |
+
# base_url="https://openrouter.ai/api/v1",
|
169 |
+
|
170 |
+
# )
|
171 |
+
|
172 |
template = """
|
173 |
Your Name is Maxwell , a specialized AI assistant for the Mawared HR System, designed to deliver accurate and contextually relevant support based solely on the provided context and chat history.
|
174 |
|