Skip to content

Commit d50ae4c

Browse files
feat(api): manual updates (#21)
1 parent 33e82c8 commit d50ae4c

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 27
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate-mpatankar%2Freplicate-client-b45f922f6a041550870a96f5acec02aa6d8830046fc98b95a275c6486f7586fc.yml
33
openapi_spec_hash: ef7fddfb49b4d9c440b0635d2c86f341
4-
config_hash: 5691e71e792eb8d38c4c91fa7efff22c
4+
config_hash: 21782974ab54ada5de4d9d9165f60fd0

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Methods:
8181
Types:
8282

8383
```python
84-
from replicate.types import Prediction, PredictionRequest
84+
from replicate.types import Prediction, PredictionOutput, PredictionRequest
8585
```
8686

8787
Methods:

src/replicate/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
from .prediction import Prediction as Prediction
6+
from .prediction_output import PredictionOutput as PredictionOutput
67
from .model_create_params import ModelCreateParams as ModelCreateParams
78
from .account_list_response import AccountListResponse as AccountListResponse
89
from .hardware_list_response import HardwareListResponse as HardwareListResponse

src/replicate/types/prediction.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List, Union, Optional
3+
from typing import Dict, Union, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

77
from .._models import BaseModel
8+
from .prediction_output import PredictionOutput
89

910
__all__ = ["Prediction", "URLs"]
1011

@@ -38,7 +39,7 @@ class Prediction(BaseModel):
3839
model: str
3940
"""The name of the model that created the prediction"""
4041

41-
output: Union[Optional[Dict[str, object]], Optional[List[object]], Optional[str], Optional[float], Optional[bool]]
42+
output: PredictionOutput
4243

4344
status: Literal["starting", "processing", "succeeded", "failed", "canceled"]
4445

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Dict, List, Union, Optional
4+
from typing_extensions import TypeAlias
5+
6+
__all__ = ["PredictionOutput"]
7+
8+
PredictionOutput: TypeAlias = Union[
9+
Optional[Dict[str, object]], Optional[List[object]], Optional[str], Optional[float], Optional[bool]
10+
]

0 commit comments

Comments
 (0)