ZIm/crates/open_router
Umesh Yadav ed4b29f80c
language_models: Improve token counting for providers (#32853)
We push the usage data whenever we receive it from the provider to make
sure the counting is correct after the turn has ended.

- [x] Ollama 
- [x] Copilot 
- [x] Mistral 
- [x] OpenRouter 
- [x] LMStudio

Put all the changes into a single PR open to move these to separate PR
if that makes the review and testing easier.

Release Notes:

- N/A
2025-06-17 10:46:29 +00:00
..
src language_models: Improve token counting for providers (#32853) 2025-06-17 10:46:29 +00:00
Cargo.toml Add support for OpenRouter as a language model provider (#29496) 2025-06-03 15:59:46 +00:00
LICENSE-GPL Add support for OpenRouter as a language model provider (#29496) 2025-06-03 15:59:46 +00:00