-
Notifications
You must be signed in to change notification settings - Fork 77
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
High API usage? #45
Comments
What’s your OS/browser? I was analyzing streaming messages this past week trying to fix a streaming bug and did not notice anything out of the ordinary. I will still try to reproduce with your setup and see if it’s browser related (maybe sending double requests or something) |
Windows 11, Microsoft Edge Stable. I just tried it again on a chat with some backlog (10 or so messages) and got a $0.03 increase.
|
So I did some tests and was not able to see any issues. I sent two messages. The first request had 38 tokens and the second one had 59 tokens. The second message was a reply to the first message. Here are the results: The requests were not sent multiple times. They both also had the correct number of tokens. |
See if you can test it as well. The newest commit turned on printing the tokenCount by default. |
You could try to use https://developers.cloudflare.com/ai-gateway/ for your unsaged instance so you can check what requests are coming from that instance and what request could come from something else. I just added a short docs entry regarding that #82 |
I noticed using unsaged.com does a lot of API requests even with very short conversations which shouldn't cost as much. I can see $0.10 increase after 10-30 mins of having used the tool (1 or 2 messages only).
The text was updated successfully, but these errors were encountered: