@@ -96,20 +96,20 @@ def __init__(
96
96
"""Construct a new synchronous Gradient client instance.
97
97
98
98
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
99
- - `api_key` from `GRADIENTAI_API_KEY `
100
- - `inference_key` from `GRADIENTAI_INFERENCE_KEY `
101
- - `agent_key` from `GRADIENTAI_AGENT_KEY `
99
+ - `api_key` from `GRADIENT_API_KEY `
100
+ - `inference_key` from `GRADIENT_INFERENCE_KEY `
101
+ - `agent_key` from `GRADIENT_AGENT_KEY `
102
102
"""
103
103
if api_key is None :
104
- api_key = os .environ .get ("GRADIENTAI_API_KEY " )
104
+ api_key = os .environ .get ("GRADIENT_API_KEY " )
105
105
self .api_key = api_key
106
106
107
107
if inference_key is None :
108
- inference_key = os .environ .get ("GRADIENTAI_INFERENCE_KEY " )
108
+ inference_key = os .environ .get ("GRADIENT_INFERENCE_KEY " )
109
109
self .inference_key = inference_key
110
110
111
111
if agent_key is None :
112
- agent_key = os .environ .get ("GRADIENTAI_AGENT_KEY " )
112
+ agent_key = os .environ .get ("GRADIENT_AGENT_KEY " )
113
113
self .agent_key = agent_key
114
114
115
115
self ._agent_endpoint = agent_endpoint
@@ -364,20 +364,20 @@ def __init__(
364
364
"""Construct a new async AsyncGradient client instance.
365
365
366
366
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
367
- - `api_key` from `GRADIENTAI_API_KEY `
368
- - `inference_key` from `GRADIENTAI_INFERENCE_KEY `
369
- - `agent_key` from `GRADIENTAI_AGENT_KEY `
367
+ - `api_key` from `GRADIENT_API_KEY `
368
+ - `inference_key` from `GRADIENT_INFERENCE_KEY `
369
+ - `agent_key` from `GRADIENT_AGENT_KEY `
370
370
"""
371
371
if api_key is None :
372
- api_key = os .environ .get ("GRADIENTAI_API_KEY " )
372
+ api_key = os .environ .get ("GRADIENT_API_KEY " )
373
373
self .api_key = api_key
374
374
375
375
if inference_key is None :
376
- inference_key = os .environ .get ("GRADIENTAI_INFERENCE_KEY " )
376
+ inference_key = os .environ .get ("GRADIENT_INFERENCE_KEY " )
377
377
self .inference_key = inference_key
378
378
379
379
if agent_key is None :
380
- agent_key = os .environ .get ("GRADIENTAI_AGENT_KEY " )
380
+ agent_key = os .environ .get ("GRADIENT_AGENT_KEY " )
381
381
self .agent_key = agent_key
382
382
383
383
self ._agent_endpoint = agent_endpoint
0 commit comments