File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Adapters should import from `hotdata_runtime` and treat this surface as the stab
6060
6161### Env Resolution
6262
63- - ` default_api_key() ` reads ` HOTDATA_API_KEY ` then ` HOTDATA_TOKEN ` .
63+ - ` default_api_key() ` reads ` HOTDATA_API_KEY ` .
6464- ` default_host() ` reads ` HOTDATA_API_URL ` (default: ` https://api.hotdata.dev ` ) and normalizes it.
6565- ` default_session_id() ` reads ` HOTDATA_SANDBOX ` .
6666- ` pick_workspace() ` prefers explicit env workspace, then active workspace, then first workspace.
Original file line number Diff line number Diff line change @@ -78,9 +78,7 @@ def __init__(
7878 def from_env (cls ) -> HotdataClient :
7979 api_key = default_api_key ()
8080 if not api_key :
81- raise RuntimeError (
82- "HOTDATA_API_KEY or HOTDATA_TOKEN must be set."
83- )
81+ raise RuntimeError ("HOTDATA_API_KEY must be set." )
8482 host = default_host ()
8583 session = default_session_id ()
8684 workspace_id = pick_workspace (api_key , host , session )
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ def normalize_host(url: str) -> str:
1919
2020
2121def default_api_key () -> str :
22- return os .environ .get ("HOTDATA_API_KEY" , "" ) or os .environ .get (
23- "HOTDATA_TOKEN" , ""
24- )
22+ return os .environ .get ("HOTDATA_API_KEY" , "" )
2523
2624
2725def explicit_workspace_id () -> str | None :
You can’t perform that action at this time.
0 commit comments