mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-02 07:36:50 +08:00
Update index.mjs
for now support for gemini. Part "_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate?" will most likely be changed later.
This commit is contained in:
Vendored
+2
-2
@@ -64,7 +64,7 @@ export default class Bard {
|
|||||||
|
|
||||||
async GetRequestParams() {
|
async GetRequestParams() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://bard.google.com', {
|
const response = await fetch('https://gemini.google.com', {
|
||||||
headers: {
|
headers: {
|
||||||
Cookie: this.cookies,
|
Cookie: this.cookies,
|
||||||
},
|
},
|
||||||
@@ -99,7 +99,7 @@ export default class Bard {
|
|||||||
try {
|
try {
|
||||||
let { at, bl } = await this.GetRequestParams()
|
let { at, bl } = await this.GetRequestParams()
|
||||||
const response = await fetch(
|
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({
|
new URLSearchParams({
|
||||||
bl: bl,
|
bl: bl,
|
||||||
rt: 'c',
|
rt: 'c',
|
||||||
|
|||||||
Reference in New Issue
Block a user