synaptrix / chatgpt-desktop Goto Github PK
View Code? Open in Web Editor NEWFuel your productivity with ChatGPT-Desktop - Blazingly fast and supercharged!
License: MIT License
Fuel your productivity with ChatGPT-Desktop - Blazingly fast and supercharged!
License: MIT License
最新的0.08版本,界面本身没什么问题,
就是快捷键无法隐藏、显示出窗口来。
换了一些按键组合,也没用
ubuntu22.04
建议增加代理设置
// 根据提示创建图像
export const createImage = (params, token) => {
console.log(params)
return axios({
method: 'post',
baseURL: `${baseUrl}/v1/images/generations`,
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
},
data: params
}).then(res => {
return res.data.data;
})
}
// 根据提示词编辑图像
export const createImageEdit = (formData, token) => {
return axios({
method: 'post',
baseURL: `${baseUrl}/v1/images/edits`,
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'multipart/form-data'
},
data: formData
}).then(res => {
return res.data.data;
})
}
查看余额功能
windows 电脑窗口添加添加阴影,始终加边框,取消圆角!
目前只做了实时计算+显示,还需要再超过token限制时,给用户提示的交互设计
快捷键无法唤起for windows
聊天的信息框hover时会出现三个小图标,鼠标选中时没有功能提示,用户体验较差
自定义滚动条,加入 session 自动滚动到底部
设置界面应该增加取消按钮或外部点击关闭,以免手贱。
点击保存回答生成 md 文件后,找不到这个文件在哪里。希望能自定义 md 文件的保存路径
考虑加一个停止输出的按钮
删除前弹出确认框!
本地文件配置自动导入!
监听onScaleChanged事件,重置当前窗口的大小
import GPT3Tokenizer from 'gpt3-tokenizer';
const tokenizer = new GPT3Tokenizer({ type: 'gpt3' });
export function estimateTokens(str: string): number {
const encoded: { bpe: number[]; text: string[] } = tokenizer.encode(str);
return encoded.bpe.length;
}
需要同时计算输入的字符+角色描述的字符
如果开启了记忆模式,还需要增加记忆所消耗的字符
总上传token必须少于4096,建议留200的余量,因为计算可能和实际有误差
需要将计算token的方法抽离,之后会用到计算返回答案的token计算
再一次.....
if (import.meta.env.PROD) {
document.addEventListener('contextmenu', (event) => event.preventDefault());
}
比如:ctrl+p,ctrl+u,ctrl+f,ctrl+g
document.onkeydown = function(event) {
if(event.ctrlKey == true && event.code == 'KeyP') {
console.log('Ctrl + p');
event.preventDefault();
}
if(event.ctrlKey == true && event.code == 'KeyU') {
console.log('Ctrl + u');
event.preventDefault();
}
if(event.ctrlKey == true && event.code == 'KeyG') {
console.log('Ctrl + g');
event.preventDefault();
}
}
毕竟使用过程中我用了唐三藏、机器人、老妈、朋友等等。。总希望能有个匹配的头像,更加贴切一些,最好还能跟换自己的头像。
以上两点我均参考everything。
快捷键唤醒时的选项,默认居中,可以记住上次打开位置!
1.windows运行会一直显示在最顶层,点击其他程序之后ChatGPT-Desktop应该被最新的应用遮挡住
v0.0.7版本有点卡顿的感觉,没有0.0.6流畅
加入自动更新的功能!
历史对话的排序按照最后一次聊天时间排序!
对话的宽度会被 code 块撑开,需要单独给 code 块添加 overflow-auto
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.