mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-02 04:06:12 +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() {
|
||||
try {
|
||||
const response = await fetch('https://bard.google.com', {
|
||||
const response = await fetch('https://gemini.google.com', {
|
||||
headers: {
|
||||
Cookie: this.cookies,
|
||||
},
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user