working scraper workflow using remote ollama

This commit is contained in:
2026-06-13 16:49:20 -07:00
parent 530fd93a0b
commit bfad71e96a
4 changed files with 25 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
"""Shared pipeline configuration helpers."""
import os
_OLLAMA_DEFAULT = "http://127.0.0.1:11434/api/generate"
_OLLAMA_PATH = "/api/generate"
def resolve_ollama_url(raw: str) -> str:
"""Ensure the Ollama URL always ends with the API path."""
if raw.endswith(_OLLAMA_PATH):
return raw
return raw.rstrip("/") + _OLLAMA_PATH