Skip to content

Commit 71bb80d

Browse files
remove role check in the streaming response (#1755)
1 parent 2ec013a commit 71bb80d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-lightspeed': patch
3+
---
4+
5+
fix streaming response in lightspeed UI

workspaces/lightspeed/plugins/lightspeed/src/hooks/useConversationMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export const useConversationMessages = (
246246
}
247247
}
248248

249-
if (event === 'token' && data?.role === 'inference') {
249+
if (event === 'token') {
250250
const content = data?.token || '';
251251

252252
finalMessages.push(content);

0 commit comments

Comments
 (0)