Skip to content

Commit aa0aaf6

Browse files
authored
feat: remove automatic STACKONE_ACCOUNT_ID environment variable loading (#23)
1 parent 4572609 commit aa0aaf6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ tools = StackOneToolSet(include_tools=["hris_*", "!hris_create_*"])
7979
# Uses environment variables or direct configuration
8080
toolset = StackOneToolSet(
8181
api_key="your-api-key", # or STACKONE_API_KEY env var
82-
account_id="optional-id" # or STACKONE_ACCOUNT_ID env var
82+
account_id="optional-id" # explicit account ID required
8383
)
8484
```
8585

stackone_ai/toolset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
4343
Args:
4444
api_key: Optional API key. If not provided, will try to get from STACKONE_API_KEY env var
45-
account_id: Optional account ID. If not provided, will try to get from STACKONE_ACCOUNT_ID env var
45+
account_id: Optional account ID
4646
base_url: Optional base URL override for API requests. If not provided, uses the URL from the OAS
4747
4848
Raises:
@@ -55,7 +55,7 @@ def __init__(
5555
"STACKONE_API_KEY environment variable"
5656
)
5757
self.api_key: str = api_key_value
58-
self.account_id = account_id or os.getenv("STACKONE_ACCOUNT_ID")
58+
self.account_id = account_id
5959
self.base_url = base_url
6060

6161
def _parse_parameters(self, parameters: list[dict[str, Any]]) -> dict[str, dict[str, str]]:

0 commit comments

Comments
 (0)