Skip to content

Commit e4bb709

Browse files
committed
Model: Fix usage stats in non-streaming gens
The wrong key was being returned from the model to the API. Signed-off-by: kingbri <bdashore3@proton.me>
1 parent 213430a commit e4bb709

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backends/exllamav2/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ async def generate(self, prompt: str, **kwargs):
656656
joined_generation["prompt_tokens"] = unwrap(
657657
generations[-1].get("prompt_tokens"), 0
658658
)
659-
joined_generation["generation_tokens"] = unwrap(
659+
joined_generation["generated_tokens"] = unwrap(
660660
generations[-1].get("generated_tokens"), 0
661661
)
662662

0 commit comments

Comments
 (0)