Skip to content
New issue

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 Gemini API doesn't explicitly document a sendMessage() function. #669

Open
albort11 opened this issue Feb 1, 2025 · 1 comment
Open
Assignees
Labels
component:python sdk Issue/PR related to Python SDK status:awaiting user response Awaiting a response from the author type:help Support-related issues

Comments

@albort11
Copy link

albort11 commented Feb 1, 2025

Description of the feature request:

I saw an example using sendMessage() to implement multi-turn conversation at this link: https://ai.google.dev/gemini-api/docs/text-generation?lang=python#chat, where the model apparently maintains message history internally.

However, the API reference lacks further details on this feature. I'm unable to determine how to identify different chat sessions, how to clear the context, or how to check the current context length using this method. Does anyone know where I can find more detailed usage information?

What problem are you trying to solve with this feature?

My translation application requires continuous contextual information. Having more control over sendMessage(), such as setting the length of the message history, the number of turns in a dialogue, or reading the current message history, would be extremely helpful.

Any other information you'd like to share?

No response

@gmKeshari gmKeshari added status:triaged Issue/PR triaged to the corresponding sub-team component:python sdk Issue/PR related to Python SDK type:help Support-related issues labels Feb 2, 2025
@gmKeshari
Copy link

Hi @albort11,

Kiran Sai explained it nicely in forum and provided the colab gist also. Please follow this forum discussion.

If you still have any doubt, please reach out.

Thanks.

@gmKeshari gmKeshari self-assigned this Feb 5, 2025
@gmKeshari gmKeshari added status:awaiting user response Awaiting a response from the author and removed status:triaged Issue/PR triaged to the corresponding sub-team labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK status:awaiting user response Awaiting a response from the author type:help Support-related issues
Projects
None yet
Development

No branches or pull requests

2 participants