Skip to content

Stop response generation before completion #6128

@jessetane

Description

@jessetane

MediaPipe Solution (you are using)

web/genai/inference

Programming language

javascript

Are you willing to contribute it

Yes

Describe the feature and the current behaviour/state

stopResponse, the complement to generateResponse

Will this change the current API? How?

Yes, by adding a stopResponse method

Who will benefit with this feature?

Everyone

Please specify the use cases for this feature

Time and power savings from being able to cancel output generation early. For example if a user spots a mistake in their query before the response is complete, they can quickly tweak their prompt and try again

Any Other info

Here is another issue I found requesting this feature but it seems to have been closed without explanation #5327

Metadata

Metadata

Labels

stat:awaiting googlerWaiting for Google Engineer's Responsetype:featureEnhancement in the New Functionality or Request for a New Solution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions