Skip to content

Commit

Permalink
Fix for tests with pydantic<2, refs #728
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 31, 2025
1 parent eb0e1e7 commit 965ad81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def models_list(options, async_, query):
for name, field in model.Options.schema()["properties"].items():
any_of = field.get("anyOf")
if any_of is None:
any_of = [{"type": field["type"]}]
any_of = [{"type": field.get("type", "str")}]
types = ", ".join(
[
_type_lookup.get(item.get("type"), item.get("type", "str"))
Expand Down

0 comments on commit 965ad81

Please sign in to comment.