forked from phoenix-oss/llama-stack-mirror
fix: resolve pydantic warning on .dict() usage (#1445)
# What does this PR do? The method "dict" in class "BaseModel" is deprecated we should use model_dump instead. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
e8071b54dc
commit
4bbb4ddeae
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ class ModelDescribe(Subcommand):
|
|||
]
|
||||
|
||||
if model.recommended_sampling_params is not None:
|
||||
sampling_params = model.recommended_sampling_params.dict()
|
||||
sampling_params = model.recommended_sampling_params.model_dump()
|
||||
for k in ("max_tokens", "repetition_penalty"):
|
||||
del sampling_params[k]
|
||||
rows.append(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue