Skip to content

Commit 1ae76f7

Browse files
feat(api): update via SDK Studio
1 parent 98424f4 commit 1ae76f7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 67
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradientai-e40feaac59c85aace6aa42d2749b20e0955dbbae58b06c3a650bc03adafcd7b5.yml
33
openapi_spec_hash: 825c1a4816938e9f594b7a8c06692667
4-
config_hash: dd2b5f3f77ea08c6062115a56c3367ee
4+
config_hash: a1224bdbf22a97483c0e2d813b24423c

src/do_gradientai/_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ def __init__(
8686
8787
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
8888
- `api_key` from `GRADIENTAI_API_KEY`
89-
- `inference_key` from `GRADIENTAI_API_KEY`
89+
- `inference_key` from `GRADIENTAI_INFERENCE_KEY`
9090
"""
9191
if api_key is None:
9292
api_key = os.environ.get("GRADIENTAI_API_KEY")
9393
self.api_key = api_key
9494

9595
if inference_key is None:
96-
inference_key = os.environ.get("GRADIENTAI_API_KEY")
96+
inference_key = os.environ.get("GRADIENTAI_INFERENCE_KEY")
9797
self.inference_key = inference_key
9898

9999
if base_url is None:
@@ -318,14 +318,14 @@ def __init__(
318318
319319
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
320320
- `api_key` from `GRADIENTAI_API_KEY`
321-
- `inference_key` from `GRADIENTAI_API_KEY`
321+
- `inference_key` from `GRADIENTAI_INFERENCE_KEY`
322322
"""
323323
if api_key is None:
324324
api_key = os.environ.get("GRADIENTAI_API_KEY")
325325
self.api_key = api_key
326326

327327
if inference_key is None:
328-
inference_key = os.environ.get("GRADIENTAI_API_KEY")
328+
inference_key = os.environ.get("GRADIENTAI_INFERENCE_KEY")
329329
self.inference_key = inference_key
330330

331331
if base_url is None:

0 commit comments

Comments
 (0)