ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Feature Request] 增加修改标题概括模型和历史摘要模型的参数

Open
#5,417 7 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 🥰 需求描述

针对于概括和历史摘要所以使用的模型,现在的逻辑在[app/store/chat.ts](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/169323e238371d933a73671ad3f5ec4c2e5644f3/app/store/chat.ts#L109)的getSummarizeModel函数里

该逻辑目前对于使用gpt、chatgpt开头的模型默认使用gpt-4o-mini,对于gemini使用gemini-pro,而对于其他的模型,则直接使用用户当前正在使用的模型。

但是对于一些价格较高的自定义模型,或者对于对并发有限制的模型而言,这种概括模型和历史摘要模型并不能使用当前正在使用的模型,以及对于chatgpt或者gemini的模型,也可能希望使用更廉价的其他模型来进行概括和摘要的工作。希望能够增加修改这些内容的高级参数设置和允许在server端添加的默认参数

### 🧐 解决方案

修改[app/config/server.ts](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/169323e238371d933a73671ad3f5ec4c2e5644f3/app/config/server.ts),增加概括模型、历史摘要模型的相关的参数
修改[app/store/chat.ts](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/169323e238371d933a73671ad3f5ec4c2e5644f3/app/store/chat.ts#L109)的getSummarizeModel函数,增加用户自定义的概括模型的使用逻辑
配套修改[app/components/settings.tsx](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/169323e238371d933a73671ad3f5ec4c2e5644f3/app/components/settings.tsx)、[app/constant.ts](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/169323e238371d933a73671ad3f5ec4c2e5644f3/app/constant.ts)等相关前端代码

### 📝 补充信息

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.