diff --git a/api_webchat/model-worker-openai.js b/api_webchat/model-worker-openai.js index 4fc5cb38..8f69953b 100644 --- a/api_webchat/model-worker-openai.js +++ b/api_webchat/model-worker-openai.js @@ -141,7 +141,8 @@ self.onmessage = async function(event) { chunk = chunk.substring(chunk.lastIndexOf('\n') + 1); console.log(">>>>>>>>>>>>>> [ThunderAI] last chunk: " + JSON.stringify(chunk)); }catch(e){ - console.error(">>>>>>>>>>>>> [ThunderAI] error: " + JSON.stringify(e)); + console.log(">>>>>>>>>>>>>> [ThunderAI] last chunk: " + JSON.stringify(chunk)); + console.error(">>>>>>>>>>>>> [ThunderAI] error: " + e); } for (const parsedLine of parsedLines) {