@@ -96,20 +96,20 @@ def __init__(
9696 """Construct a new synchronous Gradient client instance.
9797
9898 This automatically infers the following arguments from their corresponding environment variables if they are not provided:
99- - `api_key` from `GRADIENT_API_KEY `
100- - `inference_key` from `GRADIENT_INFERENCE_KEY `
101- - `agent_key` from `GRADIENT_AGENT_KEY `
99+ - `api_key` from `DIGITALOCEAN_ACCESS_TOKEN `
100+ - `inference_key` from `GRADIENT_MODEL_ACCESS_KEY `
101+ - `agent_key` from `GRADIENT_AGENT_ACCESS_KEY `
102102 """
103103 if api_key is None :
104- api_key = os .environ .get ("GRADIENT_API_KEY " )
104+ api_key = os .environ .get ("DIGITALOCEAN_ACCESS_TOKEN " )
105105 self .api_key = api_key
106106
107107 if inference_key is None :
108- inference_key = os .environ .get ("GRADIENT_INFERENCE_KEY " )
108+ inference_key = os .environ .get ("GRADIENT_MODEL_ACCESS_KEY " )
109109 self .inference_key = inference_key
110110
111111 if agent_key is None :
112- agent_key = os .environ .get ("GRADIENT_AGENT_KEY " )
112+ agent_key = os .environ .get ("GRADIENT_AGENT_ACCESS_KEY " )
113113 self .agent_key = agent_key
114114
115115 self ._agent_endpoint = agent_endpoint
@@ -364,20 +364,20 @@ def __init__(
364364 """Construct a new async AsyncGradient client instance.
365365
366366 This automatically infers the following arguments from their corresponding environment variables if they are not provided:
367- - `api_key` from `GRADIENT_API_KEY `
368- - `inference_key` from `GRADIENT_INFERENCE_KEY `
369- - `agent_key` from `GRADIENT_AGENT_KEY `
367+ - `api_key` from `DIGITALOCEAN_ACCESS_TOKEN `
368+ - `inference_key` from `GRADIENT_MODEL_ACCESS_KEY `
369+ - `agent_key` from `GRADIENT_AGENT_ACCESS_KEY `
370370 """
371371 if api_key is None :
372- api_key = os .environ .get ("GRADIENT_API_KEY " )
372+ api_key = os .environ .get ("DIGITALOCEAN_ACCESS_TOKEN " )
373373 self .api_key = api_key
374374
375375 if inference_key is None :
376- inference_key = os .environ .get ("GRADIENT_INFERENCE_KEY " )
376+ inference_key = os .environ .get ("GRADIENT_MODEL_ACCESS_KEY " )
377377 self .inference_key = inference_key
378378
379379 if agent_key is None :
380- agent_key = os .environ .get ("GRADIENT_AGENT_KEY " )
380+ agent_key = os .environ .get ("GRADIENT_AGENT_ACCESS_KEY " )
381381 self .agent_key = agent_key
382382
383383 self ._agent_endpoint = agent_endpoint
0 commit comments