mirror of
https://github.com/Hopiu/llm.git
synced 2026-04-18 04:01:02 +00:00
Serialize usage to JSON properly, closes #614
This commit is contained in:
parent
245e025270
commit
3352eb9f57
1 changed files with 1 additions and 1 deletions
|
|
@ -514,7 +514,7 @@ def combine_chunks(chunks: List) -> dict:
|
|||
|
||||
for item in chunks:
|
||||
if item.usage:
|
||||
usage = dict(item.usage)
|
||||
usage = item.usage.dict()
|
||||
for choice in item.choices:
|
||||
if choice.logprobs and hasattr(choice.logprobs, "top_logprobs"):
|
||||
logprobs.append(
|
||||
|
|
|
|||
Loading…
Reference in a new issue