mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
allow local ollama models without keys in interactive chat repl
This commit is contained in:
@@ -93,7 +93,7 @@ async def run_repl(ctx: ReplContext) -> None:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# ── AI response ─────────────────────────────────────────────────────
|
# ── AI response ─────────────────────────────────────────────────────
|
||||||
if not ctx.api_key:
|
if not ctx.api_key and not ctx.model.startswith("ollama/"):
|
||||||
console.print(
|
console.print(
|
||||||
"\n [bold red]✗ No API key configured.[/bold red] "
|
"\n [bold red]✗ No API key configured.[/bold red] "
|
||||||
"Run [cyan]securelens configure[/cyan] to set one.\n"
|
"Run [cyan]securelens configure[/cyan] to set one.\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user