Carpemer
Carpemer

Reputation: 297

Is there a way to send the query to gemini/bard through url?

Is there a way to send the query to gemini/bard through url? like ?q="How to say xyz"?

Any one ever did similar work before?

Upvotes: 3

Views: 1072

Answers (2)

confiq
confiq

Reputation: 2928

I spent half an hour searching for a solution to this. You can't! In Chrome, all you can do is use @gemini <question>.

As of today, there is no other way :(

Upvotes: 1

Prisoner
Prisoner

Reputation: 50711

The Gemini API does not provide a way for you to do so directly.

You can, of course, create your own webapp that takes a query parameter, sends it to the Gemini API (either as is or with any additional prompting you wish), and does whatever you wish with the result that comes back.

Keep in mind that this is fine for one-shot queries, but if you expect to then use it as part of a chat session you'll need to manage the chat history as well.

Upvotes: 3

Related Questions