Skip to content

Commit

Permalink
Update index.mjs
Browse files Browse the repository at this point in the history
for now support for gemini. 
Part "_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate?" will most likely be changed later.
  • Loading branch information
Tomasz Panasiuk authored and josStorer committed Mar 22, 2024
1 parent 9773a5d commit a6fa0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/clients/bard/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class Bard {

async GetRequestParams() {
try {
const response = await fetch('https://bard.google.com', {
const response = await fetch('https://gemini.google.com', {
headers: {
Cookie: this.cookies,
},
Expand Down Expand Up @@ -99,7 +99,7 @@ export default class Bard {
try {
let { at, bl } = await this.GetRequestParams()
const response = await fetch(
'https://bard.google.com/_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate?' +
'https://gemini.google.com/_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate?' +
new URLSearchParams({
bl: bl,
rt: 'c',
Expand Down

0 comments on commit a6fa0ed

Please sign in to comment.