Skip to content

Commit

Permalink
bard_url_to_gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
ishandutta2007 committed Feb 10, 2024
1 parent eb2da76 commit 81b529c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/background/providers/bard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class BARDProvider implements Provider {
}

private async fetchRequestParams() {
const html = await ofetch('https://bard.google.com/faq')
const html = await ofetch('https://gemini.google.com/faq')
const atValue = this.extractFromHTML('SNlM0e', html)
const blValue = this.extractFromHTML('cfb2h', html)
return { atValue, blValue }
Expand All @@ -99,7 +99,7 @@ export class BARDProvider implements Provider {
const payload = JSON.parse(data[0][2])
if (!payload) {
throw new ChatError(
'Failed to access Bard, make sure you are loggedin at https://bard.google.com',
'Failed to access Bard, make sure you are loggedin at https://gemini.google.com',
ErrorCode.BARD_EMPTY_RESPONSE,
)
}
Expand Down Expand Up @@ -142,7 +142,7 @@ export class BARDProvider implements Provider {
console.debug('context ids:', contextIds)
console.debug('requestParams :', requestParams)
const resp = await ofetch(
'https://bard.google.com/_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate',
'https://gemini.google.com/_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate',
{
method: 'POST',
signal: params.signal,
Expand Down
4 changes: 2 additions & 2 deletions src/content-script/ChatGPTQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ function ChatGPTQuery(props: Props) {
return (
<p>
Please login and pass Cloudflare check at{' '}
<a href="https://bard.google.com" target="_blank" rel="noreferrer">
bard.google.com
<a href="https://gemini.google.com" target="_blank" rel="noreferrer">
gemini.google.com
</a>
{retry > 0 &&
(() => {
Expand Down

0 comments on commit 81b529c

Please sign in to comment.