Skip to content

Commit

Permalink
Specify bard response type to text
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Dec 8, 2023
1 parent 163cefa commit 1b2ddcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/bots/bard/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function extractFromHTML(variableName: string, html: string) {
}

export async function fetchRequestParams() {
const html = await ofetch('https://bard.google.com/')
const html = await ofetch('https://bard.google.com/', { responseType: 'text' })

const atValue = extractFromHTML('SNlM0e', html)
const blValue = extractFromHTML('cfb2h', html)
Expand Down

0 comments on commit 1b2ddcd

Please sign in to comment.