Skip to content

Commit

Permalink
fix: print used model on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 23, 2024
1 parent bd8b746 commit 6cf4001
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gptme/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,9 @@ def init(model: str | None, interactive: bool, tool_allowlist: list[str] | None)
provider, model = cast(tuple[Provider, str], (model, None))

# set up API_KEY and API_BASE, needs to be done before loading history to avoid saving API_KEY
model = model or get_recommended_model(provider)
console.log(f"Using model: {provider}/{model}")
init_llm(provider)

if not model:
model = get_recommended_model(provider)
console.log(
f"No model specified, using recommended model for provider: {model}"
)
set_default_model(model)

if interactive:
Expand Down

0 comments on commit 6cf4001

Please sign in to comment.