Skip to content

Commit

Permalink
fix: Gemini always create new chat
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed Mar 4, 2024
1 parent abb12a0 commit 0fc406a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bots/google/BardBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ function parseResponse(resp) {
return { text, ids };
}

function generateReq(model, prompt) {
function generateReq(model, prompt, contextIds) {
let modelNumber = model == "gemini-ultra" ? 2 : 1;
// The JSON is ugly and meaningless, but it works
let innerJSON = [
[prompt, 0, null, null, null, null, 0],
["en"],
["", "", ""],
contextIds,
"",
"",
null,
Expand Down

0 comments on commit 0fc406a

Please sign in to comment.