From 6cf4001df39dce1fecd4a572e687ebcad6894f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Wed, 23 Oct 2024 21:54:56 +0200 Subject: [PATCH] fix: print used model on startup --- gptme/init.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gptme/init.py b/gptme/init.py index b732f890..03b6c778 100644 --- a/gptme/init.py +++ b/gptme/init.py @@ -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: