From 9eef678ce82748df3cdebfaf07a7c84fa0a1fd74 Mon Sep 17 00:00:00 2001 From: "Huanzhi (Hans) Mao" Date: Tue, 5 Mar 2024 20:54:01 -0800 Subject: [PATCH] Patch for typo made in #238, voting feature fix (#240) This PR fixes the typo made in the leaderboard in #238 . This PR also fixed a bug with the voting feature. --- index.js | 6 +++--- leaderboard.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index bb955839a..ad44c6563 100644 --- a/index.js +++ b/index.js @@ -97,7 +97,7 @@ document.getElementById('report-issue-btn').addEventListener('click', function ( return; } var issueTitle = "[bug] OpenFunctions-v2: " - var issueBody = `**Issue Description**%0A%0APrompt: ${inputText}%0A%0AModel: ${model}%0A%0ATemperature: ${temperatureValue}%0A%0AOutput (or Error if request failed): ${codeOutputText} %0A%0A ${jsonOutputText}%0A%0A**Additional Information**\n`; + var issueBody = `**Issue Description**%0A%0APrompt: ${inputText}%0A%0AModel: ${model}%0A%0ATemperature: ${temperatureValue}%0A%0AOutput (or Error if request failed): %0A%0A ${codeOutputText} %0A%0A ${jsonOutputText}%0A%0A**Additional Information**\n`; window.open(`https://github.com/ShishirPatil/gorilla/issues/new?assignees=&labels=hosted-openfunctions-v2&projects=&template=hosted-openfunctions-v2.md&title=${issueTitle}&body=${issueBody}`, '_blank'); }); @@ -326,7 +326,7 @@ const data = { pointHoverBorderColor: 'rgb(0, 255, 255)', hidden: true }, { - label: 'Gemma', + label: 'Gemma-7B-IT', data: [0.42, 61.45, 60.00, 41.00, 32.50, 44.71, 46.00, 44.00, 25.50], fill: true, backgroundColor: 'rgba(85, 107, 47, 0.1)', @@ -398,7 +398,7 @@ function toggleExpand() { function sendFeedback(vote) { - fetch('https://realm.mongodb.com/api/client/v2.0/app/data-onwzq/auth/providers/local-userpass/login', { + fetch('https://us-west-2.aws.realm.mongodb.com/api/client/v2.0/app/data-onwzq/auth/providers/local-userpass/login', { method: 'POST', // Specifies the request method headers: { 'Content-Type': 'application/json', // Sets header to indicate the media type of the resource diff --git a/leaderboard.html b/leaderboard.html index 66a992327..16f76226d 100644 --- a/leaderboard.html +++ b/leaderboard.html @@ -121,7 +121,7 @@

Leaderboard

1 - 85.24/td> + 85.24 GPT-4-1106-Preview @@ -438,7 +438,7 @@

Leaderboard

16 44.34 - Gemma + Gemma-7B-IT Google gemma-term-of-use