-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add 'Generate summary' integration: frontend ✨ #13803
Conversation
ceaf094
to
5a16319
Compare
src/stores/chatExtras.js
Outdated
getChatSummary: (state) => (token) => { | ||
return Object.values(Object(state.chatSummary[token])).map(task => task.summary).join('\n\n') | ||
?? t('spreed', 'Empty summary response') | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where you should add the fallbacks (empty, error etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up
5a16319
to
4213c2f
Compare
e2f3f7f
to
b1f5b93
Compare
|
||
getChatSummaryTaskQueue: (state) => (token) => { | ||
return Object.values(Object(state.chatSummary[token])) | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}, | |
}, | |
hasTaskFailed: (state) => (token) => { | |
return Object.values(Object(state.chatSummary[token])).any(task => task.status === TASK_PROCESSING.FAILED) | |
}, |
Use this to show the hint that sthg went wrong in summarizing. If you think that there are many hints (along with AI disclaimer), then don't show the summary, stop any tasks after the failed ones and show the failed summary text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
b1f5b93
to
d5dac2b
Compare
/backport to stable30 |
☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🏁 Checklist