Skip to content

fix(backend): read AUTOBOT_OLLAMA_ENDPOINT before OLLAMA_HOST fallback (#1963)#1991

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/ollama-host-fallback-1963
Mar 22, 2026
Merged

fix(backend): read AUTOBOT_OLLAMA_ENDPOINT before OLLAMA_HOST fallback (#1963)#1991
mrveiss merged 1 commit intoDev_new_guifrom
fix/ollama-host-fallback-1963

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 22, 2026

Summary

  • config.py:28 reads AUTOBOT_OLLAMA_HOST expecting a full URL
  • Docker sets this to bare hostname autobot-ollama (fix for double-protocol bug)
  • Now checks AUTOBOT_OLLAMA_ENDPOINT first (full URL), falls back to AUTOBOT_OLLAMA_HOST
  • Backward compatible with native deployments

Test Plan

  • Docker: verify Ollama connectivity from backend
  • Native: verify no regression (AUTOBOT_OLLAMA_HOST still works)

Closes #1963

#1963)

Docker sets AUTOBOT_OLLAMA_HOST to bare hostname (autobot-ollama) but
config.py expected a full URL. Now checks AUTOBOT_OLLAMA_ENDPOINT first
(which contains the full URL), falling back to OLLAMA_HOST for backward
compatibility with native deployments.
@mrveiss mrveiss merged commit a5d1136 into Dev_new_gui Mar 22, 2026
2 of 3 checks passed
@mrveiss mrveiss deleted the fix/ollama-host-fallback-1963 branch March 22, 2026 18:55
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant