mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-21 23:20:22 +00:00
Fix for pydantic warning, refs #74
This commit is contained in:
parent
9ac120fae4
commit
feff460496
1 changed files with 1 additions and 1 deletions
|
|
@ -563,7 +563,7 @@ def load_template(name):
|
|||
return Template(name=name, prompt=loaded)
|
||||
loaded["name"] = name
|
||||
try:
|
||||
return Template.parse_obj(loaded)
|
||||
return Template.model_validate(loaded)
|
||||
except pydantic.ValidationError as e:
|
||||
msg = "A validation error occurred:"
|
||||
for error in e.errors():
|
||||
|
|
|
|||
Loading…
Reference in a new issue