am using the free plan of Gemini on its web app to search for apple's latest stock price. The free plan uses Gemini 1.5 Flash and I get the answer no problem
However, when I try Gemini API, no matter which model I use (Flash or Pro), it always say it is a chatbot and does not have real-time information. I tried multiple times and one time it shows the price of Apple on Feb 2023. I asked the model what is it cutoff date and it said it is updated frequently and there is no cutoff date.
Hi @qwe962777,
Welcome to Google Cloud Community!
The differences in responses between the Gemini web app and the API come from how they are set up, the data they can access, and what they are designed to do.
They are separate products: the Gemini API gives you direct access to the language models, while the Gemini web app is a user-friendly application built on those models. It includes extra features, like connections to other Google products such as Search and Workspace.
While both use similar technology, the web app may provide real-time data or other integrations that the API does not have.
Here are some reasons for this difference:
If you want to build an app using the API, you can include any tools you like. For more information, check the function calling guide and the example cookbook recipe. For details on how the API works, please refer to the official documentation. If you need real-time stock prices through the API, consider looking into other financial data APIs that provide up-to-date market information.
I hope the above information is helpful.
gemini web has google search retrieval or what you call grounding. you can do the same with the API too, you would need to set up the genai tools.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |