[Frontend] Add midway prompt update for streaming video generation (#4652)
Signed-off-by: Huang, Zeyu <11222265+fhfuih@users.noreply.github.com>
This commit is contained in:
1 parent
1f01d05603
commit
eaf90d8eff
28 files changed
+2615
-133
No files matched your search
@@ -43,6 +43,20 @@ class OmniTextPrompt(TextPrompt):
|
||||
model_intermediate_buffer: NotRequired[dict[str, Any]]
|
||||
|
||||
|
||||
class OmniInteractionEvent(OmniTextPrompt, total=False):
|
||||
"""Prompt-event payload for mid-stream interactions."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class OmniInteractionPrompt(TypedDict, total=False):
|
||||
"""Mid-stream interaction payload."""
|
||||
|
||||
event_id: NotRequired[str]
|
||||
event: NotRequired[OmniInteractionEvent]
|
||||
transition_chunks: NotRequired[int]
|
||||
|
||||
|
||||
class OmniTokensPrompt(TokensPrompt):
|
||||
"""Tokens prompt with optional embeddings and stage payloads.
|
||||
|
||||
|
||||
Reference in new issue
Block a user