Skip to content

Commit 06730c6

Browse files
committed
fix: improved style of initial output
1 parent d3b7ddd commit 06730c6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

gptme/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def init_model(
9898
if model_name is None:
9999
model_name = get_recommended_model(provider) # type: ignore[arg-type]
100100
model_full = f"{provider}/{model_name}"
101-
console.log(f"Using model: {model_full}")
101+
console.log(f"Using model: [green]{model_full}[/green]")
102102
init_llm(provider)
103103
set_default_model(model_full)
104104

gptme/plugins/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ def get_plugin_tool_modules(
277277

278278
# Log all newly loaded plugins in one line
279279
if newly_loaded:
280-
console.log(f"Using plugins {', '.join(newly_loaded)}")
280+
console.log(
281+
f"Using plugins {', '.join(f'[green]{plugin}[/green]' for plugin in newly_loaded)}"
282+
)
281283

282284
if tool_modules:
283285
logger.debug(f"Loaded {len(tool_modules)} tool modules")

gptme/util/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _reduce_tree_output_by_depth(output: str, budget: int = 20000) -> str | None
116116

117117
filtered_output = "\n".join(filtered_lines)
118118
if len(filtered_output) <= budget:
119-
logger.info(
119+
logger.debug(
120120
f"Filtered tree output to max depth {depth} ({len(filtered_lines)} items)"
121121
)
122122
return filtered_output

0 commit comments

Comments
 (0)