Return True when the model uses the public OpenHands provider prefix.
(model: str | None)
| 102 | |
| 103 | |
| 104 | def is_openhands_model(model: str | None) -> bool: |
| 105 | """Return True when the model uses the public OpenHands provider prefix.""" |
| 106 | return bool(model and model.startswith('openhands/')) |
| 107 | |
| 108 | |
| 109 | # Canonical masked placeholder for LLM API keys. Matches pydantic's |
no outgoing calls