google-gemini / google-gemini/live-api-web-console

`turnComplete: false` in ClientContentMessage prevents later response to RealtimeInputMessages

Open
#60 0 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.6k
Forks
731
PR merge metrics
No merged PRs in 30d

Description

### Description of the bug:

I want to send contextual text data using the `ClientContentMessage` to the API while being connected and talking to the model using `RealtimeInputMessage`s but the API should not generate a response to the context data so I set `turnComplete`to `false`.

After sending the `ClientContentMessage` with the text data, I get no response, as expected, but further `RealtimeInputMessage`s that are recorded and logged also do not trigger a response anymore, even If I want to continue the voice conversation.

Image

### Actual vs expected behavior:

Actual behaviour: `RealtimeInputMessage` after the `ClientContentMessage` with `turnComplete` set to `false`**does not** trigger API response.

Expected Behaviour: `RealtimeInputMessage` after the `ClientContentMessage` with `turnComplete` set to `false`**does** trigger API response.

### Any other information you'd like to share?

I could not find any mention of this dynamic in the documentation or forums.
Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.