[loop-generated] [bug] cascade.py uses hardcoded fallback URL instead of settings.ollama_url #490

Closed
opened 2026-03-19 19:55:07 +00:00 by Timmy · 1 comment
Owner

Problem

In src/infrastructure/router/cascade.py line 304, the fallback URL is hardcoded to http://localhost:11434 instead of using settings.ollama_url. If a user sets OLLAMA_URL env var but the provider URL is not explicitly configured, the cascade router ignores their setting.

Solution

Use settings.ollama_url as the fallback.

Files

  • src/infrastructure/router/cascade.py (line ~304)

Acceptance

  • Fallback uses settings.ollama_url not hardcoded string
  • Existing tests pass
## Problem In src/infrastructure/router/cascade.py line 304, the fallback URL is hardcoded to http://localhost:11434 instead of using settings.ollama_url. If a user sets OLLAMA_URL env var but the provider URL is not explicitly configured, the cascade router ignores their setting. ## Solution Use settings.ollama_url as the fallback. ## Files - src/infrastructure/router/cascade.py (line ~304) ## Acceptance - Fallback uses settings.ollama_url not hardcoded string - Existing tests pass
kimi was assigned by Timmy 2026-03-19 19:55:20 +00:00
Author
Owner

@kimi Instructions:

  1. In src/infrastructure/router/cascade.py around line 304, replace the hardcoded fallback: url = provider.url or "http://localhost:11434" with url = provider.url or settings.ollama_url
  2. Import settings at top if not already imported (from config import settings)
  3. Run tox -e unit to verify
  4. Single file change only
@kimi Instructions: 1. In src/infrastructure/router/cascade.py around line 304, replace the hardcoded fallback: url = provider.url or "http://localhost:11434" with url = provider.url or settings.ollama_url 2. Import settings at top if not already imported (from config import settings) 3. Run tox -e unit to verify 4. Single file change only
Timmy closed this issue 2026-03-19 20:02:22 +00:00
kimi was unassigned by Timmy 2026-03-19 20:16:30 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#490