Update app.py
Browse files
app.py
CHANGED
@@ -120,12 +120,13 @@ async def handle_message(message: cl.Message):
|
|
120 |
|
121 |
if re.search(booking_pattern, user_message):
|
122 |
booking_id = re.search(booking_pattern, user_message).group(0)
|
123 |
-
|
|
|
124 |
|
125 |
# --------------------------------ALT 3--------------------------------
|
126 |
response = await api_chain.acall({
|
127 |
"booking_id": booking_id,
|
128 |
-
"headers":
|
129 |
},
|
130 |
callbacks=[cl.AsyncLangchainCallbackHandler()])
|
131 |
# ----------------------------------------------------------------------
|
|
|
120 |
|
121 |
if re.search(booking_pattern, user_message):
|
122 |
booking_id = re.search(booking_pattern, user_message).group(0)
|
123 |
+
question = {"Authorization": f"Bearer {auth_token}", "Content-Type": "application/json"}
|
124 |
+
|
125 |
|
126 |
# --------------------------------ALT 3--------------------------------
|
127 |
response = await api_chain.acall({
|
128 |
"booking_id": booking_id,
|
129 |
+
"headers": question #{"Authorization": f"Bearer {auth_token}"},
|
130 |
},
|
131 |
callbacks=[cl.AsyncLangchainCallbackHandler()])
|
132 |
# ----------------------------------------------------------------------
|