mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Assist Chat: handle intent progress delta not always being there (#25730)
handle intent progress data type change
This commit is contained in:
parent
78d7da21aa
commit
9d6a7e7e6f
@ -509,7 +509,7 @@ export class HaAssistChat extends LitElement {
|
|||||||
this.requestUpdate("_conversation");
|
this.requestUpdate("_conversation");
|
||||||
},
|
},
|
||||||
processEvent: (event: PipelineRunEvent) => {
|
processEvent: (event: PipelineRunEvent) => {
|
||||||
if (event.type === "intent-progress") {
|
if (event.type === "intent-progress" && event.data.chat_log_delta) {
|
||||||
const delta = event.data.chat_log_delta;
|
const delta = event.data.chat_log_delta;
|
||||||
|
|
||||||
// new message
|
// new message
|
||||||
|
@ -134,7 +134,8 @@ export interface ConversationChatLogToolResultDelta {
|
|||||||
interface PipelineIntentProgressEvent extends PipelineEventBase {
|
interface PipelineIntentProgressEvent extends PipelineEventBase {
|
||||||
type: "intent-progress";
|
type: "intent-progress";
|
||||||
data: {
|
data: {
|
||||||
chat_log_delta:
|
tts_start_streaming?: boolean;
|
||||||
|
chat_log_delta?:
|
||||||
| Partial<ConversationChatLogAssistantDelta>
|
| Partial<ConversationChatLogAssistantDelta>
|
||||||
// These always come in 1 chunk
|
// These always come in 1 chunk
|
||||||
| ConversationChatLogToolResultDelta;
|
| ConversationChatLogToolResultDelta;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user