Skip to content

Commit 4482f85

Browse files
docs(api): updates to API spec
1 parent fe26f83 commit 4482f85

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 32
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-d4a152368a86404e58ce6fdf8966223006e5b4a15dbda4a3bb46ee331d57781d.yml
3-
openapi_spec_hash: e951797c0506d6c69e0e2578d3dcf2db
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-b7b778ba219aa40ff765c61fb47d444ff194ec186fa263b495ab26a06760f7d9.yml
3+
openapi_spec_hash: 1a7020a16bfcfe0037bd0078ed2edda6
44
config_hash: c0c9f57ab19252f82cf765939edc61de

src/writerai/types/chat_chat_params.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
__all__ = [
1515
"ChatChatParamsBase",
1616
"Message",
17-
"MessageContentUnionMember1",
18-
"MessageContentUnionMember1TextFragment",
19-
"MessageContentUnionMember1ImageFragment",
20-
"MessageContentUnionMember1ImageFragmentImageURL",
17+
"MessageContentMixedContent",
18+
"MessageContentMixedContentTextFragment",
19+
"MessageContentMixedContentImageFragment",
20+
"MessageContentMixedContentImageFragmentImageURL",
2121
"ResponseFormat",
2222
"StreamOptions",
2323
"ToolChoice",
@@ -120,32 +120,32 @@ class ChatChatParamsBase(TypedDict, total=False):
120120
"""
121121

122122

123-
class MessageContentUnionMember1TextFragment(TypedDict, total=False):
123+
class MessageContentMixedContentTextFragment(TypedDict, total=False):
124124
text: Required[str]
125125
"""The actual text content of the message fragment."""
126126

127127
type: Required[Literal["text"]]
128128
"""The type of content fragment. Must be `text` for text fragments."""
129129

130130

131-
class MessageContentUnionMember1ImageFragmentImageURL(TypedDict, total=False):
131+
class MessageContentMixedContentImageFragmentImageURL(TypedDict, total=False):
132132
url: Required[str]
133133
"""The URL pointing to the image file.
134134
135135
Supports common image formats like JPEG, PNG, GIF, etc.
136136
"""
137137

138138

139-
class MessageContentUnionMember1ImageFragment(TypedDict, total=False):
140-
image_url: Required[MessageContentUnionMember1ImageFragmentImageURL]
139+
class MessageContentMixedContentImageFragment(TypedDict, total=False):
140+
image_url: Required[MessageContentMixedContentImageFragmentImageURL]
141141
"""The image URL object containing the location of the image."""
142142

143143
type: Required[Literal["image_url"]]
144144
"""The type of content fragment. Must be `image_url` for image fragments."""
145145

146146

147-
MessageContentUnionMember1: TypeAlias = Union[
148-
MessageContentUnionMember1TextFragment, MessageContentUnionMember1ImageFragment
147+
MessageContentMixedContent: TypeAlias = Union[
148+
MessageContentMixedContentTextFragment, MessageContentMixedContentImageFragment
149149
]
150150

151151

@@ -159,7 +159,7 @@ class Message(TypedDict, total=False):
159159
`tool`.
160160
"""
161161

162-
content: Union[str, Iterable[MessageContentUnionMember1], None]
162+
content: Union[str, Iterable[MessageContentMixedContent], None]
163163
"""The content of the message.
164164
165165
Can be either a string (for text-only messages) or an array of content fragments

0 commit comments

Comments
 (0)