working scraper workflow using remote ollama

This commit is contained in:
kfj001 committed 2026-06-13 16:49:20 -07:00
1 parent 530fd93a0b
commit bfad71e96a
4 files changed
+25 -4

No files matched your search

+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