mirror of
https://github.com/Hopiu/llm.git
synced 2026-05-02 19:04:52 +00:00
dict() is now model_dump()
This commit is contained in:
parent
9dae58d05d
commit
0ff24b34c4
1 changed files with 1 additions and 1 deletions
|
|
@ -829,7 +829,7 @@ def combine_chunks(chunks: List) -> dict:
|
|||
|
||||
for item in chunks:
|
||||
if item.usage:
|
||||
usage = item.usage.dict()
|
||||
usage = item.usage.model_dump()
|
||||
for choice in item.choices:
|
||||
if choice.logprobs and hasattr(choice.logprobs, "top_logprobs"):
|
||||
logprobs.append(
|
||||
|
|
|
|||
Loading…
Reference in a new issue