Skip to content

Commit

Permalink
Switch default to the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
amjith committed Dec 29, 2024
1 parent cf8e3e3 commit 00c91b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ result = CliRunner().invoke(cli, ["models", "list", "--options"])
cog.out("```\n{}\n```".format(result.output))
]]] -->
```
Default: gpt-4o-mini
OpenAI Chat: gpt-4o (aliases: 4o)
Options:
temperature: float
Expand Down Expand Up @@ -518,6 +517,7 @@ OpenAI Completion: gpt-3.5-turbo-instruct (aliases: 3.5-instruct, chatgpt-instru
Integer seed to attempt to sample deterministically
logprobs: int
Include the log probabilities of most likely N per token
Default: gpt-4o-mini
```
<!-- [[[end]]] -->
Expand Down
2 changes: 1 addition & 1 deletion llm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,6 @@ def models():
@click.option("async_", "--async", is_flag=True, help="List async models")
def models_list(options, async_):
"List available models"
click.echo(f"Default: {get_default_model()}")
models_that_have_shown_options = set()
for model_with_aliases in get_models_with_aliases():
if async_ and not model_with_aliases.async_model:
Expand Down Expand Up @@ -1122,6 +1121,7 @@ def models_list(options, async_):
)
output += "\n Attachment types:\n{}".format(wrapper.fill(attachment_types))
click.echo(output)
click.echo(f"Default: {get_default_model()}")


@models.command(name="default")
Expand Down

0 comments on commit 00c91b6

Please sign in to comment.