Comments (3)
我记得在这个提交 299253a 我加过,openai的标准不是json['usage']['promt_tokens']吗
参考:https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage
from copilot-gpt4-service.
我记得在这个提交 299253a 我加过,openai的标准不是json['usage']['promt_tokens']吗 参考:https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage
是的,类型上可能加了,不过我用 https://github.com/bravekingzhang/flutter_chat_box 这个项目去请求它,github 的返回值中提示 usage 是一个 null 空值。
是不是有的情况下,现在的接口会不返回 usage 字段?
from copilot-gpt4-service.
stream=false
的时候我本地测的时候是有usage
字段的
当stream=true
的时候不会有usage
字段,但是openai API的行为也是这样的
参考:https://community.openai.com/t/openai-api-get-usage-tokens-in-response-when-set-stream-true/141866
from copilot-gpt4-service.
Related Issues (20)
- GitHub Copilot Plugin 不付费可以用这个服务吗? HOT 1
- Unable to get authorization from token
- 因为有些gho token 会失效···所以能否加一个token请求失败后 踢出当前token的功能 HOT 5
- 对话框无法查到历史内容 HOT 1
- 请教一个风险相关的问题 HOT 6
- Access Error: 404 -- Not Found Cannot locate document: / HOT 8
- How Can I connect with AutoGPT? any ideal HOT 1
- /v1/embeddings WRN Get authorization from cache failed database is locked (5) (SQLITE_BUSY) HOT 7
- curl 测试时需要sudo权限才能正确返回,且NextWeb回复错误 HOT 5
- Add Memory Requirement in README.md HOT 5
- win10安全中心误杀 HOT 1
- You don't have access to GitHub Copilot. Please sign up first HOT 1
- Encountering an error when receiving the github copilot response: 429 Too Many Requests'
- openai.com been blocked. how can set the proxy for copilot-gpt4-service? HOT 5
- `go run .` 运行出错 HOT 7
- GPT 版本疑问 HOT 1
- 系统提示包含病毒怎么解… HOT 2
- 请问支不支持多个ghu呀 HOT 1
- 服务已经成功启动,但是在chatgpt-next-web上无法访问 HOT 2
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 copilot-gpt4-service.