runwayml 2.1.9__py3-none-any.whl → 2.1.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runwayml/_constants.py +1 -1
- runwayml/_models.py +1 -1
- runwayml/_response.py +2 -2
- runwayml/_version.py +1 -1
- {runwayml-2.1.9.dist-info → runwayml-2.1.11.dist-info}/METADATA +1 -1
- {runwayml-2.1.9.dist-info → runwayml-2.1.11.dist-info}/RECORD +8 -8
- {runwayml-2.1.9.dist-info → runwayml-2.1.11.dist-info}/WHEEL +0 -0
- {runwayml-2.1.9.dist-info → runwayml-2.1.11.dist-info}/licenses/LICENSE +0 -0
runwayml/_constants.py
CHANGED
@@ -6,7 +6,7 @@ RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
|
|
6
6
|
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
|
7
7
|
|
8
8
|
# default timeout is 1 minute
|
9
|
-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60
|
9
|
+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
|
10
10
|
DEFAULT_MAX_RETRIES = 2
|
11
11
|
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
|
12
12
|
|
runwayml/_models.py
CHANGED
@@ -172,7 +172,7 @@ class BaseModel(pydantic.BaseModel):
|
|
172
172
|
@override
|
173
173
|
def __str__(self) -> str:
|
174
174
|
# mypy complains about an invalid self arg
|
175
|
-
return f
|
175
|
+
return f"{self.__repr_name__()}({self.__repr_str__(', ')})" # type: ignore[misc]
|
176
176
|
|
177
177
|
# Override the 'construct' method in a way that supports recursive parsing without validation.
|
178
178
|
# Based on https://github.com/samuelcolvin/pydantic/issues/1168#issuecomment-817742836.
|
runwayml/_response.py
CHANGED
@@ -136,6 +136,8 @@ class BaseAPIResponse(Generic[R]):
|
|
136
136
|
if cast_to and is_annotated_type(cast_to):
|
137
137
|
cast_to = extract_type_arg(cast_to, 0)
|
138
138
|
|
139
|
+
origin = get_origin(cast_to) or cast_to
|
140
|
+
|
139
141
|
if self._is_sse_stream:
|
140
142
|
if to:
|
141
143
|
if not is_stream_class_type(to):
|
@@ -195,8 +197,6 @@ class BaseAPIResponse(Generic[R]):
|
|
195
197
|
if cast_to == bool:
|
196
198
|
return cast(R, response.text.lower() == "true")
|
197
199
|
|
198
|
-
origin = get_origin(cast_to) or cast_to
|
199
|
-
|
200
200
|
if origin == APIResponse:
|
201
201
|
raise RuntimeError("Unexpected state - cast_to is `APIResponse`")
|
202
202
|
|
runwayml/_version.py
CHANGED
@@ -2,16 +2,16 @@ runwayml/__init__.py,sha256=iXnJfH73wbj9IxfCHpwfWBxgOa9C4FRrrbBZM5f3biw,2476
|
|
2
2
|
runwayml/_base_client.py,sha256=TXFvRY1-arZnZOXHsADOiHtSsP6w5TyPEAY9JhD_qvA,68132
|
3
3
|
runwayml/_client.py,sha256=4y5GISlJ-EYAWKfNIj6p2W_7KwJY3bHVkCYU7yNJBtU,16453
|
4
4
|
runwayml/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
5
|
-
runwayml/_constants.py,sha256=
|
5
|
+
runwayml/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
6
6
|
runwayml/_exceptions.py,sha256=p2Q8kywHCVQzArLQL4Ht-HetTBhAvevU6yDvEq7PpIE,3224
|
7
7
|
runwayml/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
8
|
-
runwayml/_models.py,sha256=
|
8
|
+
runwayml/_models.py,sha256=uZvPAaaeDwCYwvB-yq7nxZnZ70I2Na_KjSAqaPQWfh0,28659
|
9
9
|
runwayml/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
10
10
|
runwayml/_resource.py,sha256=BF-j3xY5eRTKmuTxg8eDhLtLP4MLB1phDh_B6BKipKA,1112
|
11
|
-
runwayml/_response.py,sha256=
|
11
|
+
runwayml/_response.py,sha256=3Tf7pmDYDMv5BJuF0ljEBtMMk5Q9T7jcWn7I6P-hbdM,28801
|
12
12
|
runwayml/_streaming.py,sha256=NSVuAgknVQWU1cgZEjQn01IdZKKynb5rOeYp5Lo-OEQ,10108
|
13
13
|
runwayml/_types.py,sha256=oHct1QQY_lI8bepCgfWDZm2N5VNi0e6o1iLeiTh4Y_0,6145
|
14
|
-
runwayml/_version.py,sha256=
|
14
|
+
runwayml/_version.py,sha256=VmWt9-erz5tYxsu7syCtS3eiMJ5ql7ee4HfkffFvqJw,161
|
15
15
|
runwayml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
runwayml/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
runwayml/_utils/_logs.py,sha256=ZfS5W59hdqEBVV86lNrk28PhvUxtHOzs9JqiLhSu0pI,780
|
@@ -30,7 +30,7 @@ runwayml/types/__init__.py,sha256=R3cLEXzpcEpEOuxaFBo3R72ewH1LtjpkZ0aYOIt1CAo,40
|
|
30
30
|
runwayml/types/image_to_video_create_params.py,sha256=98DsjOHnmHEi8mVjZOQEDL3P1hJUT8uktp0mDA5WJ5Y,1869
|
31
31
|
runwayml/types/image_to_video_create_response.py,sha256=l5GszzUSItV-ZYHCB8hH_GSVibUZEkzfRLrAhXkd8O4,346
|
32
32
|
runwayml/types/task_retrieve_response.py,sha256=v8y2bLxsW6srzScW-B3Akv72q_PI_NQmduGrGRQMHds,2139
|
33
|
-
runwayml-2.1.
|
34
|
-
runwayml-2.1.
|
35
|
-
runwayml-2.1.
|
36
|
-
runwayml-2.1.
|
33
|
+
runwayml-2.1.11.dist-info/METADATA,sha256=FOxmN7GmzcLemSULiLBvDC4rW8q2NP6rKp0949eZOPw,13560
|
34
|
+
runwayml-2.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
35
|
+
runwayml-2.1.11.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
|
36
|
+
runwayml-2.1.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|