summaryrefslogtreecommitdiffstats
path: root/assets/arena.html
diff options
context:
space:
mode:
Diffstat (limited to 'assets/arena.html')
-rw-r--r--assets/arena.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/arena.html b/assets/arena.html
index e1eec1e..5cfe8f4 100644
--- a/assets/arena.html
+++ b/assets/arena.html
@@ -847,9 +847,9 @@
const chat = this.chats[index];
const messages = [];
for ([userMessage, assistantMessage] of chunkArray(chat.messages, 2)) {
- if (assistantMessage.state == "failed") {
+ if (assistantMessage.state === "failed") {
continue;
- } else if (assistantMessage.state == "loading") {
+ } else if (assistantMessage.state === "loading") {
messages.push({
role: userMessage.role,
content: userMessage.content,
@@ -929,7 +929,7 @@
const parsed = JSON.parse(message);
yield parsed;
} catch {
- if (i == lines.length - 1) {
+ if (i === lines.length - 1) {
reamingChunkValue += line;
break;
}