-
Notifications
You must be signed in to change notification settings - Fork 59.3k
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: summarize model customization #5426
feat: summarize model customization #5426
Conversation
@skymkmk is attempting to deploy a commit to the NextChat Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes introduce new functionalities to the chat and model configuration components, including a reload button for refreshing chat sessions and the ability to select a compression model. Additionally, localization strings for multiple languages have been added to support these new features, enhancing user experience. The summarization logic in the chat store has been streamlined, and configuration settings for the model have been updated to include a new compression model. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ChatComponent
participant ChatStore
User->>ChatComponent: Click Reload Button
ChatComponent->>ChatStore: summarizeSession(true)
ChatStore->>ChatComponent: Show Toast Notification
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Your build has completed! |
才发现 #5369 好像已经做了 |
I just discovered that #5369 seems to have been done |
#5369 的问题在于只通过model name无法判断要用哪个api client |
The problem with #5369 is that it is impossible to determine which api client to use only through the model name. |
95ae88a
to
4b7f534
Compare
4b7f534
to
a5679d4
Compare
a5679d4
to
1b869d9
Compare
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
现在用户可以自定义模型进行标题生成与回忆总结,并且可以手动进行标题生成
📝 补充信息 | Additional Information
complete #5417
由于我的 API 提供商提供的 API 都是基于 OpenAI 结构的,我无法测试诸如 gemini、Claude 等其他 API 提供商结构,理论上来说逻辑应该是通顺的。
标题刷新按钮在手机上的布局可能不好看(不对称),但我一时间也想不到更好的布局方案。
现在手动刷新标题发送的历史长度基于用户在模型设置里设置的发送历史的长度,最短为最近的一条历史消息。
Summary by CodeRabbit
Release Notes
New Features
Localization Enhancements
Bug Fixes
These updates enhance user experience by providing new functionalities and improved localization support.