@@ -166,6 +166,8 @@ class CompletionCreateParamsBase(TypedDict, total=False):
166166
167167
168168class MessageChatCompletionRequestSystemMessageContentArrayOfContentPartUnionMember1 (TypedDict , total = False ):
169+ """Content part with type and text"""
170+
169171 text : Required [str ]
170172 """The text content"""
171173
@@ -179,6 +181,11 @@ class MessageChatCompletionRequestSystemMessageContentArrayOfContentPartUnionMem
179181
180182
181183class MessageChatCompletionRequestSystemMessage (TypedDict , total = False ):
184+ """
185+ System-provided instructions that the model should follow, regardless of
186+ messages sent by the user.
187+ """
188+
182189 content : Required [Union [str , SequenceNotStr [MessageChatCompletionRequestSystemMessageContentArrayOfContentPart ]]]
183190 """The contents of the system message."""
184191
@@ -187,6 +194,8 @@ class MessageChatCompletionRequestSystemMessage(TypedDict, total=False):
187194
188195
189196class MessageChatCompletionRequestDeveloperMessageContentArrayOfContentPartUnionMember1 (TypedDict , total = False ):
197+ """Content part with type and text"""
198+
190199 text : Required [str ]
191200 """The text content"""
192201
@@ -200,6 +209,11 @@ class MessageChatCompletionRequestDeveloperMessageContentArrayOfContentPartUnion
200209
201210
202211class MessageChatCompletionRequestDeveloperMessage (TypedDict , total = False ):
212+ """
213+ Developer-provided instructions that the model should follow, regardless of
214+ messages sent by the user.
215+ """
216+
203217 content : Required [Union [str , SequenceNotStr [MessageChatCompletionRequestDeveloperMessageContentArrayOfContentPart ]]]
204218 """The contents of the developer message."""
205219
@@ -208,6 +222,8 @@ class MessageChatCompletionRequestDeveloperMessage(TypedDict, total=False):
208222
209223
210224class MessageChatCompletionRequestUserMessageContentArrayOfContentPartUnionMember1 (TypedDict , total = False ):
225+ """Content part with type and text"""
226+
211227 text : Required [str ]
212228 """The text content"""
213229
@@ -221,6 +237,11 @@ class MessageChatCompletionRequestUserMessageContentArrayOfContentPartUnionMembe
221237
222238
223239class MessageChatCompletionRequestUserMessage (TypedDict , total = False ):
240+ """
241+ Messages sent by an end user, containing prompts or additional context
242+ information.
243+ """
244+
224245 content : Required [Union [str , SequenceNotStr [MessageChatCompletionRequestUserMessageContentArrayOfContentPart ]]]
225246 """The contents of the user message."""
226247
@@ -229,6 +250,8 @@ class MessageChatCompletionRequestUserMessage(TypedDict, total=False):
229250
230251
231252class MessageChatCompletionRequestAssistantMessageContentArrayOfContentPartUnionMember1 (TypedDict , total = False ):
253+ """Content part with type and text"""
254+
232255 text : Required [str ]
233256 """The text content"""
234257
@@ -242,6 +265,8 @@ class MessageChatCompletionRequestAssistantMessageContentArrayOfContentPartUnion
242265
243266
244267class MessageChatCompletionRequestAssistantMessageToolCallFunction (TypedDict , total = False ):
268+ """The function that the model called."""
269+
245270 arguments : Required [str ]
246271 """
247272 The arguments to call the function with, as generated by the model in JSON
@@ -266,6 +291,8 @@ class MessageChatCompletionRequestAssistantMessageToolCall(TypedDict, total=Fals
266291
267292
268293class MessageChatCompletionRequestAssistantMessage (TypedDict , total = False ):
294+ """Messages sent by the model in response to user messages."""
295+
269296 role : Required [Literal ["assistant" ]]
270297 """The role of the messages author, in this case `assistant`."""
271298
@@ -297,6 +324,8 @@ class MessageChatCompletionRequestToolMessage(TypedDict, total=False):
297324
298325
299326class StreamOptions (TypedDict , total = False ):
327+ """Options for streaming response. Only set this when you set `stream: true`."""
328+
300329 include_usage : bool
301330 """If set, an additional chunk will be streamed before the `data: [DONE]` message.
302331
@@ -315,6 +344,11 @@ class ToolChoiceChatCompletionNamedToolChoiceFunction(TypedDict, total=False):
315344
316345
317346class ToolChoiceChatCompletionNamedToolChoice (TypedDict , total = False ):
347+ """Specifies a tool the model should use.
348+
349+ Use to force the model to call a specific function.
350+ """
351+
318352 function : Required [ToolChoiceChatCompletionNamedToolChoiceFunction ]
319353
320354 type : Required [Literal ["function" ]]
0 commit comments