Update app.py
Browse files
app.py
CHANGED
@@ -123,11 +123,13 @@ async def handle_message(message: cl.Message):
|
|
123 |
headers = {"Authorization": f"Bearer {auth_token}", "Content-Type": "application/json"}
|
124 |
|
125 |
# --------------------------------AD VAL.III--------------------------------
|
126 |
-
response = await api_chain.acall(
|
|
|
127 |
"url": endpoint_url,
|
128 |
"method": "POST",
|
129 |
"headers": headers,
|
130 |
-
"body": {"booking_id": booking_id
|
|
|
131 |
callbacks=[cl.AsyncLangchainCallbackHandler()])
|
132 |
# ----------------------------------------------------------------------
|
133 |
|
|
|
123 |
headers = {"Authorization": f"Bearer {auth_token}", "Content-Type": "application/json"}
|
124 |
|
125 |
# --------------------------------AD VAL.III--------------------------------
|
126 |
+
response = await api_chain.acall(
|
127 |
+
({
|
128 |
"url": endpoint_url,
|
129 |
"method": "POST",
|
130 |
"headers": headers,
|
131 |
+
"body": {"booking_id": booking_id
|
132 |
+
}),
|
133 |
callbacks=[cl.AsyncLangchainCallbackHandler()])
|
134 |
# ----------------------------------------------------------------------
|
135 |
|