4343 "Transport" ,
4444 "ProxiesTypes" ,
4545 "RequestOptions" ,
46- "CleanlabCodex " ,
47- "AsyncCleanlabCodex " ,
46+ "Cleanlab " ,
47+ "AsyncCleanlab " ,
4848 "Client" ,
4949 "AsyncClient" ,
5050]
5656}
5757
5858
59- class CleanlabCodex (SyncAPIClient ):
59+ class Cleanlab (SyncAPIClient ):
6060 health : health .HealthResource
6161 organizations : organizations .OrganizationsResource
6262 users : users .UsersResource
6363 projects : projects .ProjectsResource
64- with_raw_response : CleanlabCodexWithRawResponse
65- with_streaming_response : CleanlabCodexWithStreamedResponse
64+ with_raw_response : CleanlabWithRawResponse
65+ with_streaming_response : CleanlabWithStreamedResponse
6666
6767 # client options
6868 bearer_token : str | None
@@ -97,7 +97,7 @@ def __init__(
9797 # part of our public interface in the future.
9898 _strict_response_validation : bool = False ,
9999 ) -> None :
100- """Construct a new synchronous Cleanlab Codex client instance.
100+ """Construct a new synchronous Cleanlab client instance.
101101
102102 This automatically infers the following arguments from their corresponding environment variables if they are not provided:
103103 - `bearer_token` from `BEARER_TOKEN`
@@ -118,14 +118,14 @@ def __init__(
118118
119119 self ._environment = environment
120120
121- base_url_env = os .environ .get ("CLEANLAB_CODEX_BASE_URL " )
121+ base_url_env = os .environ .get ("CLEANLAB_BASE_URL " )
122122 if is_given (base_url ) and base_url is not None :
123123 # cast required because mypy doesn't understand the type narrowing
124124 base_url = cast ("str | httpx.URL" , base_url ) # pyright: ignore[reportUnnecessaryCast]
125125 elif is_given (environment ):
126126 if base_url_env and base_url is not None :
127127 raise ValueError (
128- "Ambiguous URL; The `CLEANLAB_CODEX_BASE_URL ` env var and the `environment` argument are given. If you want to use the environment, you must pass base_url=None" ,
128+ "Ambiguous URL; The `CLEANLAB_BASE_URL ` env var and the `environment` argument are given. If you want to use the environment, you must pass base_url=None" ,
129129 )
130130
131131 try :
@@ -157,8 +157,8 @@ def __init__(
157157 self .organizations = organizations .OrganizationsResource (self )
158158 self .users = users .UsersResource (self )
159159 self .projects = projects .ProjectsResource (self )
160- self .with_raw_response = CleanlabCodexWithRawResponse (self )
161- self .with_streaming_response = CleanlabCodexWithStreamedResponse (self )
160+ self .with_raw_response = CleanlabWithRawResponse (self )
161+ self .with_streaming_response = CleanlabWithStreamedResponse (self )
162162
163163 @property
164164 @override
@@ -318,13 +318,13 @@ def _make_status_error(
318318 return APIStatusError (err_msg , response = response , body = body )
319319
320320
321- class AsyncCleanlabCodex (AsyncAPIClient ):
321+ class AsyncCleanlab (AsyncAPIClient ):
322322 health : health .AsyncHealthResource
323323 organizations : organizations .AsyncOrganizationsResource
324324 users : users .AsyncUsersResource
325325 projects : projects .AsyncProjectsResource
326- with_raw_response : AsyncCleanlabCodexWithRawResponse
327- with_streaming_response : AsyncCleanlabCodexWithStreamedResponse
326+ with_raw_response : AsyncCleanlabWithRawResponse
327+ with_streaming_response : AsyncCleanlabWithStreamedResponse
328328
329329 # client options
330330 bearer_token : str | None
@@ -359,7 +359,7 @@ def __init__(
359359 # part of our public interface in the future.
360360 _strict_response_validation : bool = False ,
361361 ) -> None :
362- """Construct a new async Cleanlab Codex client instance.
362+ """Construct a new async Cleanlab client instance.
363363
364364 This automatically infers the following arguments from their corresponding environment variables if they are not provided:
365365 - `bearer_token` from `BEARER_TOKEN`
@@ -380,14 +380,14 @@ def __init__(
380380
381381 self ._environment = environment
382382
383- base_url_env = os .environ .get ("CLEANLAB_CODEX_BASE_URL " )
383+ base_url_env = os .environ .get ("CLEANLAB_BASE_URL " )
384384 if is_given (base_url ) and base_url is not None :
385385 # cast required because mypy doesn't understand the type narrowing
386386 base_url = cast ("str | httpx.URL" , base_url ) # pyright: ignore[reportUnnecessaryCast]
387387 elif is_given (environment ):
388388 if base_url_env and base_url is not None :
389389 raise ValueError (
390- "Ambiguous URL; The `CLEANLAB_CODEX_BASE_URL ` env var and the `environment` argument are given. If you want to use the environment, you must pass base_url=None" ,
390+ "Ambiguous URL; The `CLEANLAB_BASE_URL ` env var and the `environment` argument are given. If you want to use the environment, you must pass base_url=None" ,
391391 )
392392
393393 try :
@@ -419,8 +419,8 @@ def __init__(
419419 self .organizations = organizations .AsyncOrganizationsResource (self )
420420 self .users = users .AsyncUsersResource (self )
421421 self .projects = projects .AsyncProjectsResource (self )
422- self .with_raw_response = AsyncCleanlabCodexWithRawResponse (self )
423- self .with_streaming_response = AsyncCleanlabCodexWithStreamedResponse (self )
422+ self .with_raw_response = AsyncCleanlabWithRawResponse (self )
423+ self .with_streaming_response = AsyncCleanlabWithStreamedResponse (self )
424424
425425 @property
426426 @override
@@ -580,38 +580,38 @@ def _make_status_error(
580580 return APIStatusError (err_msg , response = response , body = body )
581581
582582
583- class CleanlabCodexWithRawResponse :
584- def __init__ (self , client : CleanlabCodex ) -> None :
583+ class CleanlabWithRawResponse :
584+ def __init__ (self , client : Cleanlab ) -> None :
585585 self .health = health .HealthResourceWithRawResponse (client .health )
586586 self .organizations = organizations .OrganizationsResourceWithRawResponse (client .organizations )
587587 self .users = users .UsersResourceWithRawResponse (client .users )
588588 self .projects = projects .ProjectsResourceWithRawResponse (client .projects )
589589
590590
591- class AsyncCleanlabCodexWithRawResponse :
592- def __init__ (self , client : AsyncCleanlabCodex ) -> None :
591+ class AsyncCleanlabWithRawResponse :
592+ def __init__ (self , client : AsyncCleanlab ) -> None :
593593 self .health = health .AsyncHealthResourceWithRawResponse (client .health )
594594 self .organizations = organizations .AsyncOrganizationsResourceWithRawResponse (client .organizations )
595595 self .users = users .AsyncUsersResourceWithRawResponse (client .users )
596596 self .projects = projects .AsyncProjectsResourceWithRawResponse (client .projects )
597597
598598
599- class CleanlabCodexWithStreamedResponse :
600- def __init__ (self , client : CleanlabCodex ) -> None :
599+ class CleanlabWithStreamedResponse :
600+ def __init__ (self , client : Cleanlab ) -> None :
601601 self .health = health .HealthResourceWithStreamingResponse (client .health )
602602 self .organizations = organizations .OrganizationsResourceWithStreamingResponse (client .organizations )
603603 self .users = users .UsersResourceWithStreamingResponse (client .users )
604604 self .projects = projects .ProjectsResourceWithStreamingResponse (client .projects )
605605
606606
607- class AsyncCleanlabCodexWithStreamedResponse :
608- def __init__ (self , client : AsyncCleanlabCodex ) -> None :
607+ class AsyncCleanlabWithStreamedResponse :
608+ def __init__ (self , client : AsyncCleanlab ) -> None :
609609 self .health = health .AsyncHealthResourceWithStreamingResponse (client .health )
610610 self .organizations = organizations .AsyncOrganizationsResourceWithStreamingResponse (client .organizations )
611611 self .users = users .AsyncUsersResourceWithStreamingResponse (client .users )
612612 self .projects = projects .AsyncProjectsResourceWithStreamingResponse (client .projects )
613613
614614
615- Client = CleanlabCodex
615+ Client = Cleanlab
616616
617- AsyncClient = AsyncCleanlabCodex
617+ AsyncClient = AsyncCleanlab
0 commit comments