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

Function _is_placeholder

paperflow/providers/embedding.py:156–160  ·  view source on GitHub ↗
(value: Optional[str])

Source from the content-addressed store, hash-verified

154
155
156def _is_placeholder(value: Optional[str]) -> bool:
157 normalized = (value or "").strip().lower()
158 if not normalized:
159 return True
160 return any(token in normalized for token in ("your-", "your_", "placeholder", "xxxxx", "replace_me"))
161
162
163def build_embedding_provider(config: Optional[ProviderConfig] = None) -> EmbeddingProvider:

Callers 1

build_embedding_providerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected