update readme

This commit is contained in:
Archeb
2024-04-16 01:44:04 +08:00
parent d3fe3ba816
commit 7f8fbdceee
4 changed files with 38 additions and 1 deletions
+8
View File
@@ -169,7 +169,15 @@ app.post("/v1/messages", (req, res) => {
responseType: "stream",
})
.catch((e) => {
if(e.response.data) {
// print data
e.response.data.on("data", (chunk) => {
console.log(chunk.toString());
}
);
}else{
throw e;
}
});
let cachedLine = "";