(self)
| 772 | return False |
| 773 | |
| 774 | def do_GET(self): |
| 775 | if not self._auth_ok(): |
| 776 | return |
| 777 | if self.path.startswith("/v1/models"): |
| 778 | code, body = build_models_response() |
| 779 | self._send_json(code, body) |
| 780 | elif self.path.startswith("/health"): |
| 781 | self._send_json(200, {"status": "ok", "provider": PROV_NAME}) |
| 782 | else: |
| 783 | self._send_json(404, {"type": "error", "error": {"type": "not_found_error", "message": self.path}}) |
| 784 | |
| 785 | def do_POST(self): |
| 786 | if not self._auth_ok(): |
nothing calls this directly
no test coverage detected