[Question]: Unexpected Token Usage with Anthropic API #4825
Unanswered
PogChamp-Peter
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Haiku is used for creating titles at the start of the conversation. There is a bit of prompting involved for the title, you can also disable titling. |
Beta Was this translation helpful? Give feedback.
4 replies
-
I tried the same prompt in big-agi.com and it worked just as expected: The issue definitely seems to be with LibreChat; I'm not sure if it's a bug or some enabled-by-default feature... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is your question?
I'm using Anthropic's API to access Claude Sonnet 20240620 through LibreChat [Running via npm], and I've run into a weird issue with token usage. I made a simple query just to check how many tokens I'd consume:
When I checked the Anthropic dashboard, the input token count was way too high.
This is the first conversation I’ve ever had with the API, and I’m sure the API key isn’t being used anywhere else. The timestamps match exactly when I sent the query to Sonnet3.5, so it’s not a coincidence.
What’s even stranger is that the dashboard shows token usage for Haiku as well, something I never accessed or even attempted to use. And also the weird HTTP and Streaming diff btw Sonnet and Haiku.
To rule out caching as the culprit, I disabled it and ran another query in Chat 2. Same result, absurdly high input tokens.
I’m not using any prompts or custom instructions.
Everything is running on the default settings in LibreChat. Any idea what could be causing this massive token discrepancy or how to fix it? I'd appreciate any insight because this behavior doesn't make sense based on my usage.
Thanks in advance!
More Details
No response
What is the main subject of your question?
No response
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions