We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e2ec57 commit 36297a1Copy full SHA for 36297a1
1 file changed
nanocoder/cli.py
@@ -143,12 +143,14 @@ def _repl(agent: Agent, config: Config):
143
c = agent.llm.total_completion_tokens
144
console.print(f"Tokens used this session: [cyan]{p}[/cyan] prompt + [cyan]{c}[/cyan] completion = [bold]{p+c}[/bold] total")
145
continue
146
- if user_input.startswith("/model "):
+ if user_input.startswith("/model"):
147
new_model = user_input[7:].strip()
148
if new_model:
149
agent.llm.model = new_model
150
config.model = new_model
151
console.print(f"Switched to [cyan]{new_model}[/cyan]")
152
+ else:
153
+ console.print(f"[yellow]Current model: [cyan]{config.model}[cyan][/yellow]")
154
155
if user_input == "/compact":
156
from .context import estimate_tokens
0 commit comments