Skip to content

Commit

Permalink
Patch for typo made in #238, voting feature fix (#240)
Browse files Browse the repository at this point in the history
This PR fixes the typo made in the leaderboard in #238 . 
This PR also fixed a bug with the voting feature.
  • Loading branch information
HuanzhiMao authored Mar 6, 2024
1 parent e15243f commit 9eef678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand Down Expand Up @@ -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)',
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions leaderboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h2>Leaderboard</h2>
<tbody>
<tr>
<td>1</td>
<td>85.24/td>
<td>85.24</td>
<td>
<a href=''>GPT-4-1106-Preview</a>
</td>
Expand Down Expand Up @@ -438,7 +438,7 @@ <h2>Leaderboard</h2>
<td>16</td>
<td>44.34</td>
<td>
<a href=''>Gemma</a>
<a href=''>Gemma-7B-IT</a>
</td>
<td>Google</td>
<td>gemma-term-of-use</td>
Expand Down

0 comments on commit 9eef678

Please sign in to comment.