Skip to content

Commit dc87604

Browse files
feat(api): Allow nullable text schemas
1 parent 9862221 commit dc87604

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 12
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-1aeb1c81a84999f2d27ca9e86b041d74b892926bed126dc9b0f3cff4d7b26963.yml
3-
openapi_spec_hash: 6280f6c6fb537f7c9ac5cc33ee2e433d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-ed59cb6466c038703341e4b1eacb013f08b1907b40a6cba7d39ff5396fb432f3.yml
3+
openapi_spec_hash: 9d983b5f712eb8b5531127543291c6e7
44
config_hash: f9aa4d901581aaf70789dd0bc1b84597

src/parallel/types/text_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class TextSchema(BaseModel):
12-
description: str
12+
description: Optional[str] = None
1313
"""A text description of the desired output from the task."""
1414

1515
type: Optional[Literal["text"]] = None

src/parallel/types/text_schema_param.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Optional
6+
from typing_extensions import Literal, TypedDict
67

78
__all__ = ["TextSchemaParam"]
89

910

1011
class TextSchemaParam(TypedDict, total=False):
11-
description: Required[str]
12+
description: Optional[str]
1213
"""A text description of the desired output from the task."""
1314

1415
type: Literal["text"]

0 commit comments

Comments
 (0)