Skip to content

Commit

Permalink
Back to the deprecated Pydantic thing to get tests passing
Browse files Browse the repository at this point in the history
Refs #612
  • Loading branch information
simonw committed Nov 6, 2024
1 parent 12df1a3 commit 7146fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,9 +963,9 @@ def models_list(options):
extra = " (aliases: {})".format(", ".join(model_with_aliases.aliases))
model = model_with_aliases.model
output = str(model) + extra
if options and model.Options.model_json_schema()["properties"]:
if options and model.Options.schema()["properties"]:
output += "\n Options:"
for name, field in model.Options.model_json_schema()["properties"].items():
for name, field in model.Options.schema()["properties"].items():
any_of = field.get("anyOf")
if any_of is None:
any_of = [{"type": field["type"]}]
Expand Down

0 comments on commit 7146fe8

Please sign in to comment.