We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The response is empty when the query includes a link to a webpage. For example try this query:
Can you summarize this article for me? https://blog.google/technology/ai/code-with-bard/
This happens because resData[3] contains an empty string. To get the actual response text the ask method needs to be modified to return resData[1]:
async ask(prompt, conversationId) { let resData = await this.send(prompt, conversationId); return resData[3].length > 0 ? resData[3] : resData[1]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The response is empty when the query includes a link to a webpage. For example try this query:
This happens because resData[3] contains an empty string. To get the actual response text the ask method needs to be modified to return resData[1]:
The text was updated successfully, but these errors were encountered: