|
52 | 52 | ) |
53 | 53 | from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray |
54 | 54 | from ..._base_client import AsyncPaginator, make_request_options |
| 55 | +from .dynamic_routing import ( |
| 56 | + DynamicRoutingResource, |
| 57 | + AsyncDynamicRoutingResource, |
| 58 | + DynamicRoutingResourceWithRawResponse, |
| 59 | + AsyncDynamicRoutingResourceWithRawResponse, |
| 60 | + DynamicRoutingResourceWithStreamingResponse, |
| 61 | + AsyncDynamicRoutingResourceWithStreamingResponse, |
| 62 | +) |
55 | 63 | from .evaluation_types import ( |
56 | 64 | EvaluationTypesResource, |
57 | 65 | AsyncEvaluationTypesResource, |
|
60 | 68 | EvaluationTypesResourceWithStreamingResponse, |
61 | 69 | AsyncEvaluationTypesResourceWithStreamingResponse, |
62 | 70 | ) |
| 71 | +from .provider_configs import ( |
| 72 | + ProviderConfigsResource, |
| 73 | + AsyncProviderConfigsResource, |
| 74 | + ProviderConfigsResourceWithRawResponse, |
| 75 | + AsyncProviderConfigsResourceWithRawResponse, |
| 76 | + ProviderConfigsResourceWithStreamingResponse, |
| 77 | + AsyncProviderConfigsResourceWithStreamingResponse, |
| 78 | +) |
63 | 79 | from ...types.ai_gateway import ai_gateway_list_params, ai_gateway_create_params, ai_gateway_update_params |
64 | 80 | from ...types.ai_gateway.ai_gateway_get_response import AIGatewayGetResponse |
65 | 81 | from ...types.ai_gateway.ai_gateway_list_response import AIGatewayListResponse |
@@ -87,6 +103,14 @@ def datasets(self) -> DatasetsResource: |
87 | 103 | def evaluations(self) -> EvaluationsResource: |
88 | 104 | return EvaluationsResource(self._client) |
89 | 105 |
|
| 106 | + @cached_property |
| 107 | + def dynamic_routing(self) -> DynamicRoutingResource: |
| 108 | + return DynamicRoutingResource(self._client) |
| 109 | + |
| 110 | + @cached_property |
| 111 | + def provider_configs(self) -> ProviderConfigsResource: |
| 112 | + return ProviderConfigsResource(self._client) |
| 113 | + |
90 | 114 | @cached_property |
91 | 115 | def urls(self) -> URLsResource: |
92 | 116 | return URLsResource(self._client) |
@@ -415,6 +439,14 @@ def datasets(self) -> AsyncDatasetsResource: |
415 | 439 | def evaluations(self) -> AsyncEvaluationsResource: |
416 | 440 | return AsyncEvaluationsResource(self._client) |
417 | 441 |
|
| 442 | + @cached_property |
| 443 | + def dynamic_routing(self) -> AsyncDynamicRoutingResource: |
| 444 | + return AsyncDynamicRoutingResource(self._client) |
| 445 | + |
| 446 | + @cached_property |
| 447 | + def provider_configs(self) -> AsyncProviderConfigsResource: |
| 448 | + return AsyncProviderConfigsResource(self._client) |
| 449 | + |
418 | 450 | @cached_property |
419 | 451 | def urls(self) -> AsyncURLsResource: |
420 | 452 | return AsyncURLsResource(self._client) |
@@ -762,6 +794,14 @@ def datasets(self) -> DatasetsResourceWithRawResponse: |
762 | 794 | def evaluations(self) -> EvaluationsResourceWithRawResponse: |
763 | 795 | return EvaluationsResourceWithRawResponse(self._ai_gateway.evaluations) |
764 | 796 |
|
| 797 | + @cached_property |
| 798 | + def dynamic_routing(self) -> DynamicRoutingResourceWithRawResponse: |
| 799 | + return DynamicRoutingResourceWithRawResponse(self._ai_gateway.dynamic_routing) |
| 800 | + |
| 801 | + @cached_property |
| 802 | + def provider_configs(self) -> ProviderConfigsResourceWithRawResponse: |
| 803 | + return ProviderConfigsResourceWithRawResponse(self._ai_gateway.provider_configs) |
| 804 | + |
765 | 805 | @cached_property |
766 | 806 | def urls(self) -> URLsResourceWithRawResponse: |
767 | 807 | return URLsResourceWithRawResponse(self._ai_gateway.urls) |
@@ -803,6 +843,14 @@ def datasets(self) -> AsyncDatasetsResourceWithRawResponse: |
803 | 843 | def evaluations(self) -> AsyncEvaluationsResourceWithRawResponse: |
804 | 844 | return AsyncEvaluationsResourceWithRawResponse(self._ai_gateway.evaluations) |
805 | 845 |
|
| 846 | + @cached_property |
| 847 | + def dynamic_routing(self) -> AsyncDynamicRoutingResourceWithRawResponse: |
| 848 | + return AsyncDynamicRoutingResourceWithRawResponse(self._ai_gateway.dynamic_routing) |
| 849 | + |
| 850 | + @cached_property |
| 851 | + def provider_configs(self) -> AsyncProviderConfigsResourceWithRawResponse: |
| 852 | + return AsyncProviderConfigsResourceWithRawResponse(self._ai_gateway.provider_configs) |
| 853 | + |
806 | 854 | @cached_property |
807 | 855 | def urls(self) -> AsyncURLsResourceWithRawResponse: |
808 | 856 | return AsyncURLsResourceWithRawResponse(self._ai_gateway.urls) |
@@ -844,6 +892,14 @@ def datasets(self) -> DatasetsResourceWithStreamingResponse: |
844 | 892 | def evaluations(self) -> EvaluationsResourceWithStreamingResponse: |
845 | 893 | return EvaluationsResourceWithStreamingResponse(self._ai_gateway.evaluations) |
846 | 894 |
|
| 895 | + @cached_property |
| 896 | + def dynamic_routing(self) -> DynamicRoutingResourceWithStreamingResponse: |
| 897 | + return DynamicRoutingResourceWithStreamingResponse(self._ai_gateway.dynamic_routing) |
| 898 | + |
| 899 | + @cached_property |
| 900 | + def provider_configs(self) -> ProviderConfigsResourceWithStreamingResponse: |
| 901 | + return ProviderConfigsResourceWithStreamingResponse(self._ai_gateway.provider_configs) |
| 902 | + |
847 | 903 | @cached_property |
848 | 904 | def urls(self) -> URLsResourceWithStreamingResponse: |
849 | 905 | return URLsResourceWithStreamingResponse(self._ai_gateway.urls) |
@@ -885,6 +941,14 @@ def datasets(self) -> AsyncDatasetsResourceWithStreamingResponse: |
885 | 941 | def evaluations(self) -> AsyncEvaluationsResourceWithStreamingResponse: |
886 | 942 | return AsyncEvaluationsResourceWithStreamingResponse(self._ai_gateway.evaluations) |
887 | 943 |
|
| 944 | + @cached_property |
| 945 | + def dynamic_routing(self) -> AsyncDynamicRoutingResourceWithStreamingResponse: |
| 946 | + return AsyncDynamicRoutingResourceWithStreamingResponse(self._ai_gateway.dynamic_routing) |
| 947 | + |
| 948 | + @cached_property |
| 949 | + def provider_configs(self) -> AsyncProviderConfigsResourceWithStreamingResponse: |
| 950 | + return AsyncProviderConfigsResourceWithStreamingResponse(self._ai_gateway.provider_configs) |
| 951 | + |
888 | 952 | @cached_property |
889 | 953 | def urls(self) -> AsyncURLsResourceWithStreamingResponse: |
890 | 954 | return AsyncURLsResourceWithStreamingResponse(self._ai_gateway.urls) |
0 commit comments