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

Function _is_placeholder

paperflow/providers/llm.py:368–372  ·  view source on GitHub ↗
(value: Optional[str])

Source from the content-addressed store, hash-verified

366
367
368def _is_placeholder(value: Optional[str]) -> bool:
369 normalized = (value or "").strip().lower()
370 if not normalized:
371 return True
372 return any(token in normalized for token in ("your-", "your_", "placeholder", "xxxxx", "replace_me"))
373
374
375def build_llm_provider(config: Optional[ProviderConfig] = None) -> LLMProvider:

Callers 1

build_llm_providerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected