-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add OpenAI Usage stats when using streaming with the Chat Completions API or Completions API #3360
Comments
For what it's worth, Fastchat already supports some usage stats while streaming: |
Thanks for reply. Could you tell me which version support usage stats. Then, you can close this issue! |
I'm using the newest version, but I think it's been available for a little bit. https://github.com/lm-sys/FastChat/blob/main/fastchat/serve/openai_api_server.py#L743 |
I reviewed the code and found its' for @app.post("/v1/embeddings", dependencies=[Depends(check_api_key)]) |
@brandonbiggs any progress? |
Sorry, any progress on what? I get stats when calling mine. Not sure why you don't. |
" I get stats when calling mine. Not sure why you don't." Do you use streaming mode(SSE)? If so, i will test again |
any one can help? in the https://github.com/lm-sys/FastChat/blob/main/fastchat/serve/openai_api_server.py, the /v1/chat/completions method without stat response when use streaming. |
from OpenAI 1.26.0, Usage stats now available when using streaming with the Chat Completions API or Completions API
https://community.openai.com/t/usage-stats-now-available-when-using-streaming-with-the-chat-completions-api-or-completions-api/738156
FastChat should also support this stat.
The text was updated successfully, but these errors were encountered: