sampr373

Results 6 comments of sampr373

应该共用关闭上下文开关#378,修改一下样式 可以自己看看相关[代码](https://github.com/Chanzhaoyu/chatgpt-web/pull/393/commits/5c528a7f93b9fd9640eb7b58c1679eb3a7474f6e#:~:text=(lastContext%20%26%26-,usingContext,-.value)) 相关issue #1007 #887(暂时解决方法) #987 #378 讨论了很久了,不需要重复吧 目前为了支持网页 accessToken似乎项目结构修改起来比较恶心,不知道是不是应该在大改结构弃用这一特征后进行。

> 能否增加max tokens配置项呢,最近经常遇到回复到一半就不说话了,让它继续就说不记得了,一看日志的请求max tokens是1000 max tokens不止这么多吧,你启用了最新的,在配置.env中打开长对话了吗

如果是3,提示的sendMessage (32 tokens)计数加上max_tokens(回答的长度,默认是1000)不能超过模型的上下文长度,2048个token。如果你经常需要>1000token的长回答,应该是使用4才有可能 4的话这个不是已经被merge了 https://github.com/Chanzhaoyu/chatgpt-web/pull/729

需要添加gzip参数吗#1021 我试了下加不加体感还是有区别的,朋友都说变快了

类似这种操作是合理的吗 ``` import type { ProxyOptions } from 'vite' let isGpt4Url = false export function createViteProxy(isOpenProxy: boolean, viteEnv: ImportMetaEnv) { if (!isOpenProxy) return const targetUrl = isGpt4Url ? viteEnv.VITE_APP_API_BASE_URL_gpt4 :...