Comments (2)
TL;DR: 会。
token 统计显示样式为 ~ xxx + yyy = zzz
其中这三个数字都是上游的 api 依赖库提供的(which 核对下来 xxx 的计算略有出入,少了一些前后包装,我已经提代码了)
~ 是预估,因为上游的依赖库是自己算的不是根据 openai 的返回来算的
xxx 是 prompt 的 token 数,含上下文,至于含多少上下文,这个取决于上游 api 依赖库自己的设定,其实本项目没有控制
yyy 是 response 的 token 数,这个实测下来是准的
zzz 就是两者相加
from chatgpt-web.
确切地说是token统计。 这取决你使用什么模式。
在 Kerwin1202/chatgpt-web 中, 对话框左侧有一个时钟按钮,可以控制下一次对话时是否包括之前的所有对话。 红不包括,绿则包括。 最新版本也支持对话的token消耗了,你也可以测试一下是不是这样。
另外,我个人的习惯时,短对话时使用API;长对话使用access token。 因此,我其实是安装了2个docker stack。 感觉还是挺不错的 (ฅ´ω`ฅ)
具体可见我的教程: Docker系列 基于OpenAI API和Access Token自建ChatGPT
from chatgpt-web.
Related Issues (20)
- 使用逆向的API无法正常携带上下文 HOT 2
- 用户管理建议 HOT 1
- 注册后收不到验证邮件怎么办,qq邮箱 HOT 1
- 不用注册也能用的ChatGPT怎么集成? HOT 1
- 能否根据不同模型扣除不同次数
- 用户管理页面能否增加一个最后登陆时间的字段?
- 选择3.5模型后,询问GPT他说他是3的模型,但是同一个Key我在别的平台用,一样选择3.5我再问他,他说他是3.5模型 HOT 2
- GPT4 turbo
- 邮箱验证、修改密码报错后,后台服务程序直接退出 HOT 1
- SMTP设置部分能增加一个发件人地址字段吗
- 建议增加STT、TTS、OCR功能
- 程序回答代码高亮问题 HOT 5
- 怎么修改api地址和添加模型呢 HOT 2
- 新用户全局次数设置,是否可以实现每日重置呢? HOT 1
- 程序内容回答过多的时候需要手动下拉才能到最底下
- 怎么在vercel上部署? HOT 1
- 冒昧问下更新后设置key的地方在哪里? HOT 2
- 最新版本【aaae763】的复制功能用不了,麻烦复原下原来的!!! HOT 6
- 【错误】连续对话错误
- 对话失败|怎么设置代理地址? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-web.