MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / __init__

Method __init__

openspace/cloud/client.py:59–69  ·  view source on GitHub ↗
(self, auth_headers: Dict[str, str], api_base: str)

Source from the content-addressed store, hash-verified

57 _DEFAULT_UA = "OpenSpace-Client/1.0"
58
59 def __init__(self, auth_headers: Dict[str, str], api_base: str):
60 if not auth_headers:
61 raise CloudError(
62 "No OPENSPACE_API_KEY configured. "
63 "Register at https://open-space.cloud to obtain a key."
64 )
65 self._headers = {
66 "User-Agent": self._DEFAULT_UA,
67 **auth_headers,
68 }
69 self._base = api_base.rstrip("/")
70
71 def _request(
72 self,

Callers

nothing calls this directly

Calls 1

CloudErrorClass · 0.85

Tested by

no test coverage detected