-
Notifications
You must be signed in to change notification settings - Fork 183
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 auto generate the meaning title for the message using AI #101
Conversation
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
frontend/lib/tools/auto.ts
Outdated
let summaryText = ''; | ||
|
||
try { | ||
const { text } = await generateText({ |
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.
No need for await, we should prioritize streamText, and we can await generateText after streamText ends.
@@ -173,6 +189,11 @@ export async function autoAnswer( | |||
await streamResponse({ videos: videos }, onStream); | |||
} | |||
|
|||
if (summaryText) { | |||
await streamResponse({ sources: texts, title: summaryTitle }, onStream); |
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.
we should update the title in the UI
Hi @ahaapple, I've added changes according to your comments, please review and let me know! |
This PR only completes part of the functionality. I will merge it first, and then I will complete the rest of the development. Thank you. |
🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀 |
Thanks for merging! |
Description
Added auto generate the meaning title for the message using gpt-4o-mini.
Related Issue
Changes Made
How to Test
Please describe the steps to test the changes made in this pull request. Include any specific commands or configurations needed.
Checklist
Additional Information
Please provide any additional information that may be helpful for the reviewers.