提交

Show features (including streaming) in llm models --options, closes #796

这个提交包含在:
Simon Willison
2025-02-27 15:44:38 -08:00
父节点 efe265137d
当前提交 4a7a1f19ed
修改 2 个文件,包含 62 行新增0 行删除
+9
查看文件
@@ -1341,6 +1341,15 @@ def models_list(options, async_, query):
subsequent_indent=" ",
)
output += "\n Attachment types:\n{}".format(wrapper.fill(attachment_types))
features = (
[]
+ (["streaming"] if model.can_stream else [])
+ (["schemas"] if model.supports_schema else [])
)
if features:
output += "\n Features:\n{}".format(
"\n".join(" - {}".format(feature) for feature in features)
)
click.echo(output)
if not query:
click.echo(f"Default: {get_default_model()}")