Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,8 @@ class EnhancedRequestsPostTool(RequestsPostTool, BaseModel):
|
|
59 |
# --form(at) response/:response_chain
|
60 |
formatted_response = await self.response_chain.ainvoke({
|
61 |
"api_docs": self.api_docs,
|
62 |
-
"question": input_data.get("question"),
|
63 |
-
"api_url": url_response.get("text"),
|
64 |
"api_response": api_response
|
65 |
})
|
66 |
|
@@ -176,7 +176,7 @@ async def handle_message(message: cl.Message):
|
|
176 |
|
177 |
response = await post_tool.ainvoke(
|
178 |
json.dumps(post_data),
|
179 |
-
[cl.AsyncLangchainCallbackHandler()]
|
180 |
)
|
181 |
|
182 |
# --degug!
|
|
|
59 |
# --form(at) response/:response_chain
|
60 |
formatted_response = await self.response_chain.ainvoke({
|
61 |
"api_docs": self.api_docs,
|
62 |
+
#"question": input_data.get("question"),
|
63 |
+
#"api_url": url_response.get("text"),
|
64 |
"api_response": api_response
|
65 |
})
|
66 |
|
|
|
176 |
|
177 |
response = await post_tool.ainvoke(
|
178 |
json.dumps(post_data),
|
179 |
+
[cl.AsyncLangchainCallbackHandler()] # config={"callbacks":
|
180 |
)
|
181 |
|
182 |
# --degug!
|