(*names: str)
| 72 | def _is_placeholder_openai_key(api_key: Optional[str]) -> bool: |
| 73 | normalized = str(api_key or "").strip().lower() |
| 74 | if not normalized: |
| 75 | return True |
| 76 | return ( |
| 77 | "your-api-key" in normalized |
| 78 | or normalized.endswith("-here") |
| 79 | or normalized == "sk-your-api-key-here" |
| 80 | ) |
| 81 | |
| 82 |
no test coverage detected