removing commented line
This commit is contained in:
parent
3c5b0aa02a
commit
3e7f67b698
1 changed files with 0 additions and 1 deletions
|
|
@ -110,7 +110,6 @@ self.onmessage = async function(event) {
|
||||||
.filter((line) => line.startsWith("data:"))
|
.filter((line) => line.startsWith("data:"))
|
||||||
.map((line) => line.replace(/^data: /, "").trim()) // Remove the "data: " prefix
|
.map((line) => line.replace(/^data: /, "").trim()) // Remove the "data: " prefix
|
||||||
.filter((line) => line !== "" && line !== "[DONE]") // Remove empty lines and "[DONE]"
|
.filter((line) => line !== "" && line !== "[DONE]") // Remove empty lines and "[DONE]"
|
||||||
// .map((line) => JSON.parse(line)); // Parse the JSON string
|
|
||||||
.map((line) => {
|
.map((line) => {
|
||||||
try {
|
try {
|
||||||
taLog.log("line: " + JSON.stringify(line));
|
taLog.log("line: " + JSON.stringify(line));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue