mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
feat: print model info as formatted JSON in verbose mode
This commit is contained in:
parent
f02da16353
commit
c04453d282
1 changed files with 2 additions and 2 deletions
|
@ -510,9 +510,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
main_model = models.Model(args.model, weak_model=args.weak_model)
|
main_model = models.Model(args.model, weak_model=args.weak_model)
|
||||||
|
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
|
import json
|
||||||
io.tool_output("Model info:")
|
io.tool_output("Model info:")
|
||||||
for key, value in main_model.info.items():
|
io.tool_output(json.dumps(main_model.info, indent=4))
|
||||||
io.tool_output(f" {key}: {value}")
|
|
||||||
|
|
||||||
lint_cmds = parse_lint_cmds(args.lint_cmd, io)
|
lint_cmds = parse_lint_cmds(args.lint_cmd, io)
|
||||||
if lint_cmds is None:
|
if lint_cmds is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue