allow local ollama models without keys in interactive chat repl

This commit is contained in:
rarebuffalo
2026-06-15 00:42:06 +05:30
parent f9e1a15268
commit 1b976fa8fd

View File

@@ -93,7 +93,7 @@ async def run_repl(ctx: ReplContext) -> None:
continue
# ── AI response ─────────────────────────────────────────────────────
if not ctx.api_key:
if not ctx.api_key and not ctx.model.startswith("ollama/"):
console.print(
"\n [bold red]✗ No API key configured.[/bold red] "
"Run [cyan]securelens configure[/cyan] to set one.\n"