ZIm/crates/language_models
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 copilot: Allow enterprise to sign in and use copilot (#32296) 2025-06-17 11:36:53 +02:00
LICENSE-GPL Add language_models crate to house language model providers (#20945) 2024-11-20 18:49:34 -05:00