2525)
2626from ..pagination import SyncCursorURLPage , AsyncCursorURLPage
2727from .._base_client import AsyncPaginator , make_request_options
28- from ..types .prediction_response import PredictionResponse
28+ from ..types .prediction import Prediction
2929
3030__all__ = ["PredictionsResource" , "AsyncPredictionsResource" ]
3131
@@ -65,7 +65,7 @@ def create(
6565 extra_query : Query | None = None ,
6666 extra_body : Body | None = None ,
6767 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
68- ) -> PredictionResponse :
68+ ) -> Prediction :
6969 """
7070 Create a prediction for the model version and inputs you provide.
7171
@@ -186,7 +186,7 @@ def create(
186186 options = make_request_options (
187187 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
188188 ),
189- cast_to = PredictionResponse ,
189+ cast_to = Prediction ,
190190 )
191191
192192 def list (
@@ -200,7 +200,7 @@ def list(
200200 extra_query : Query | None = None ,
201201 extra_body : Body | None = None ,
202202 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
203- ) -> SyncCursorURLPage [PredictionResponse ]:
203+ ) -> SyncCursorURLPage [Prediction ]:
204204 """
205205 Get a paginated list of all predictions created by the user or organization
206206 associated with the provided API token.
@@ -287,7 +287,7 @@ def list(
287287 """
288288 return self ._get_api_list (
289289 "/predictions" ,
290- page = SyncCursorURLPage [PredictionResponse ],
290+ page = SyncCursorURLPage [Prediction ],
291291 options = make_request_options (
292292 extra_headers = extra_headers ,
293293 extra_query = extra_query ,
@@ -301,7 +301,7 @@ def list(
301301 prediction_list_params .PredictionListParams ,
302302 ),
303303 ),
304- model = PredictionResponse ,
304+ model = Prediction ,
305305 )
306306
307307 def cancel (
@@ -348,7 +348,7 @@ def list_by_id(
348348 extra_query : Query | None = None ,
349349 extra_body : Body | None = None ,
350350 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
351- ) -> PredictionResponse :
351+ ) -> Prediction :
352352 """
353353 Get the current state of a prediction.
354354
@@ -437,7 +437,7 @@ def list_by_id(
437437 options = make_request_options (
438438 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
439439 ),
440- cast_to = PredictionResponse ,
440+ cast_to = Prediction ,
441441 )
442442
443443
@@ -476,7 +476,7 @@ async def create(
476476 extra_query : Query | None = None ,
477477 extra_body : Body | None = None ,
478478 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
479- ) -> PredictionResponse :
479+ ) -> Prediction :
480480 """
481481 Create a prediction for the model version and inputs you provide.
482482
@@ -597,7 +597,7 @@ async def create(
597597 options = make_request_options (
598598 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
599599 ),
600- cast_to = PredictionResponse ,
600+ cast_to = Prediction ,
601601 )
602602
603603 def list (
@@ -611,7 +611,7 @@ def list(
611611 extra_query : Query | None = None ,
612612 extra_body : Body | None = None ,
613613 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
614- ) -> AsyncPaginator [PredictionResponse , AsyncCursorURLPage [PredictionResponse ]]:
614+ ) -> AsyncPaginator [Prediction , AsyncCursorURLPage [Prediction ]]:
615615 """
616616 Get a paginated list of all predictions created by the user or organization
617617 associated with the provided API token.
@@ -698,7 +698,7 @@ def list(
698698 """
699699 return self ._get_api_list (
700700 "/predictions" ,
701- page = AsyncCursorURLPage [PredictionResponse ],
701+ page = AsyncCursorURLPage [Prediction ],
702702 options = make_request_options (
703703 extra_headers = extra_headers ,
704704 extra_query = extra_query ,
@@ -712,7 +712,7 @@ def list(
712712 prediction_list_params .PredictionListParams ,
713713 ),
714714 ),
715- model = PredictionResponse ,
715+ model = Prediction ,
716716 )
717717
718718 async def cancel (
@@ -759,7 +759,7 @@ async def list_by_id(
759759 extra_query : Query | None = None ,
760760 extra_body : Body | None = None ,
761761 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
762- ) -> PredictionResponse :
762+ ) -> Prediction :
763763 """
764764 Get the current state of a prediction.
765765
@@ -848,7 +848,7 @@ async def list_by_id(
848848 options = make_request_options (
849849 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
850850 ),
851- cast_to = PredictionResponse ,
851+ cast_to = Prediction ,
852852 )
853853
854854
0 commit comments