(value: Optional[str])
| 154 | |
| 155 | |
| 156 | def _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 | |
| 163 | def build_embedding_provider(config: Optional[ProviderConfig] = None) -> EmbeddingProvider: |
no outgoing calls
no test coverage detected