@@ -95,18 +95,9 @@ def __init__(
95
95
# part of our public interface in the future.
96
96
_strict_response_validation : bool = False ,
97
97
) -> None :
98
- """Construct a new synchronous Codex client instance.
99
-
100
- This automatically infers the following arguments from their corresponding environment variables if they are not provided:
101
- - `api_key` from `CODEX_API_KEY`
102
- - `access_key` from `CODEX_ACCESS_KEY`
103
- """
104
- if api_key is None :
105
- api_key = os .environ .get ("CODEX_API_KEY" )
98
+ """Construct a new synchronous Codex client instance."""
106
99
self .api_key = api_key
107
100
108
- if access_key is None :
109
- access_key = os .environ .get ("CODEX_ACCESS_KEY" )
110
101
self .access_key = access_key
111
102
112
103
self ._environment = environment
@@ -334,18 +325,9 @@ def __init__(
334
325
# part of our public interface in the future.
335
326
_strict_response_validation : bool = False ,
336
327
) -> None :
337
- """Construct a new async Codex client instance.
338
-
339
- This automatically infers the following arguments from their corresponding environment variables if they are not provided:
340
- - `api_key` from `CODEX_API_KEY`
341
- - `access_key` from `CODEX_ACCESS_KEY`
342
- """
343
- if api_key is None :
344
- api_key = os .environ .get ("CODEX_API_KEY" )
328
+ """Construct a new async Codex client instance."""
345
329
self .api_key = api_key
346
330
347
- if access_key is None :
348
- access_key = os .environ .get ("CODEX_ACCESS_KEY" )
349
331
self .access_key = access_key
350
332
351
333
self ._environment = environment
0 commit comments