5555
5656
5757class AlphaResource (SyncAPIResource ):
58- @cached_property
59- def inference (self ) -> InferenceResource :
60- return InferenceResource (self ._client )
61-
6258 @cached_property
6359 def post_training (self ) -> PostTrainingResource :
6460 return PostTrainingResource (self ._client )
@@ -75,6 +71,10 @@ def eval(self) -> EvalResource:
7571 def admin (self ) -> AdminResource :
7672 return AdminResource (self ._client )
7773
74+ @cached_property
75+ def inference (self ) -> InferenceResource :
76+ return InferenceResource (self ._client )
77+
7878 @cached_property
7979 def with_raw_response (self ) -> AlphaResourceWithRawResponse :
8080 """
@@ -96,10 +96,6 @@ def with_streaming_response(self) -> AlphaResourceWithStreamingResponse:
9696
9797
9898class AsyncAlphaResource (AsyncAPIResource ):
99- @cached_property
100- def inference (self ) -> AsyncInferenceResource :
101- return AsyncInferenceResource (self ._client )
102-
10399 @cached_property
104100 def post_training (self ) -> AsyncPostTrainingResource :
105101 return AsyncPostTrainingResource (self ._client )
@@ -116,6 +112,10 @@ def eval(self) -> AsyncEvalResource:
116112 def admin (self ) -> AsyncAdminResource :
117113 return AsyncAdminResource (self ._client )
118114
115+ @cached_property
116+ def inference (self ) -> AsyncInferenceResource :
117+ return AsyncInferenceResource (self ._client )
118+
119119 @cached_property
120120 def with_raw_response (self ) -> AsyncAlphaResourceWithRawResponse :
121121 """
@@ -140,10 +140,6 @@ class AlphaResourceWithRawResponse:
140140 def __init__ (self , alpha : AlphaResource ) -> None :
141141 self ._alpha = alpha
142142
143- @cached_property
144- def inference (self ) -> InferenceResourceWithRawResponse :
145- return InferenceResourceWithRawResponse (self ._alpha .inference )
146-
147143 @cached_property
148144 def post_training (self ) -> PostTrainingResourceWithRawResponse :
149145 return PostTrainingResourceWithRawResponse (self ._alpha .post_training )
@@ -160,15 +156,15 @@ def eval(self) -> EvalResourceWithRawResponse:
160156 def admin (self ) -> AdminResourceWithRawResponse :
161157 return AdminResourceWithRawResponse (self ._alpha .admin )
162158
159+ @cached_property
160+ def inference (self ) -> InferenceResourceWithRawResponse :
161+ return InferenceResourceWithRawResponse (self ._alpha .inference )
162+
163163
164164class AsyncAlphaResourceWithRawResponse :
165165 def __init__ (self , alpha : AsyncAlphaResource ) -> None :
166166 self ._alpha = alpha
167167
168- @cached_property
169- def inference (self ) -> AsyncInferenceResourceWithRawResponse :
170- return AsyncInferenceResourceWithRawResponse (self ._alpha .inference )
171-
172168 @cached_property
173169 def post_training (self ) -> AsyncPostTrainingResourceWithRawResponse :
174170 return AsyncPostTrainingResourceWithRawResponse (self ._alpha .post_training )
@@ -185,15 +181,15 @@ def eval(self) -> AsyncEvalResourceWithRawResponse:
185181 def admin (self ) -> AsyncAdminResourceWithRawResponse :
186182 return AsyncAdminResourceWithRawResponse (self ._alpha .admin )
187183
184+ @cached_property
185+ def inference (self ) -> AsyncInferenceResourceWithRawResponse :
186+ return AsyncInferenceResourceWithRawResponse (self ._alpha .inference )
187+
188188
189189class AlphaResourceWithStreamingResponse :
190190 def __init__ (self , alpha : AlphaResource ) -> None :
191191 self ._alpha = alpha
192192
193- @cached_property
194- def inference (self ) -> InferenceResourceWithStreamingResponse :
195- return InferenceResourceWithStreamingResponse (self ._alpha .inference )
196-
197193 @cached_property
198194 def post_training (self ) -> PostTrainingResourceWithStreamingResponse :
199195 return PostTrainingResourceWithStreamingResponse (self ._alpha .post_training )
@@ -210,15 +206,15 @@ def eval(self) -> EvalResourceWithStreamingResponse:
210206 def admin (self ) -> AdminResourceWithStreamingResponse :
211207 return AdminResourceWithStreamingResponse (self ._alpha .admin )
212208
209+ @cached_property
210+ def inference (self ) -> InferenceResourceWithStreamingResponse :
211+ return InferenceResourceWithStreamingResponse (self ._alpha .inference )
212+
213213
214214class AsyncAlphaResourceWithStreamingResponse :
215215 def __init__ (self , alpha : AsyncAlphaResource ) -> None :
216216 self ._alpha = alpha
217217
218- @cached_property
219- def inference (self ) -> AsyncInferenceResourceWithStreamingResponse :
220- return AsyncInferenceResourceWithStreamingResponse (self ._alpha .inference )
221-
222218 @cached_property
223219 def post_training (self ) -> AsyncPostTrainingResourceWithStreamingResponse :
224220 return AsyncPostTrainingResourceWithStreamingResponse (self ._alpha .post_training )
@@ -234,3 +230,7 @@ def eval(self) -> AsyncEvalResourceWithStreamingResponse:
234230 @cached_property
235231 def admin (self ) -> AsyncAdminResourceWithStreamingResponse :
236232 return AsyncAdminResourceWithStreamingResponse (self ._alpha .admin )
233+
234+ @cached_property
235+ def inference (self ) -> AsyncInferenceResourceWithStreamingResponse :
236+ return AsyncInferenceResourceWithStreamingResponse (self ._alpha .inference )
0 commit comments