MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _normalize_embed_provider

Function _normalize_embed_provider

paperflow/providers/config.py:80–88  ·  view source on GitHub ↗
(raw: Optional[str])

Source from the content-addressed store, hash-verified

78
79
80def _normalize_embed_provider(raw: Optional[str]) -> str:
81 value = (raw or "").strip().lower()
82 if value in {"", "auto"}:
83 return "hash"
84 if value in {"openai", "ollama", "hash"}:
85 return value
86 if value in {"sentence_transformers", "sentence-transformers", "local", "st"}:
87 return "sentence_transformers"
88 return "hash"
89
90
91def _first_env(*names: str) -> str:

Callers 1

load_provider_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected