Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Jun 4, 2024
1 parent 5c785e7 commit 80d3d4d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bioimageio_chatbot/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1738,10 +1738,13 @@ <h3 class="text-center">Welcome to BioImage.IO Chatbot</h3>
}
const args = accumulatedArgs.replace(/\\n/g, '\n');

content = // `<details> <summary>${message.name}</summary>`+
"## Generating response for " + message.name + "...\n\n" +
args;
// + "</details>";
if(message.name ==="CompleteUserQuery"){
content = `## ✅Generating Final Response...\n\n` +
args;
}
else{
content = "## ⏳Calling tool 🛠️ `" + message.name + "`...\n\n" + args;
}
$(`#content-${currentMessageId}`).html(marked(completeCodeBlocks(content), { renderer: renderer }));
}
else if (message.type === 'text') {
Expand Down

0 comments on commit 80d3d4d

Please sign in to comment.