From 1b976fa8fdfe47d50677ff82b23a348834a6ecdd Mon Sep 17 00:00:00 2001 From: rarebuffalo Date: Mon, 15 Jun 2026 00:42:06 +0530 Subject: [PATCH] allow local ollama models without keys in interactive chat repl --- cli/securelens/repl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/securelens/repl.py b/cli/securelens/repl.py index afb6e7f..1dcfdec 100644 --- a/cli/securelens/repl.py +++ b/cli/securelens/repl.py @@ -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"