File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 97
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-82fd6fcb3eea81cbbe09a6f831c82219f1251e1b76474b4c41f424bf277e6a71 .yml
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-79dcb0ae501ac17004f50aecb112a798290ab3727fbe7c7d1b34299e38ed4f8e .yml
3
3
openapi_spec_hash : c8d54bd1ae3d704f6b6f72ffd2f876d8
4
- config_hash : 3315d58b60faf63b1bee251b81837cda
4
+ config_hash : 167ad0ca036d0f023c78e6496b4311e8
Original file line number Diff line number Diff line change @@ -1411,6 +1411,19 @@ func UserMessage[T string | []ChatCompletionContentPartUnionParam](content T) Ch
1411
1411
return ChatCompletionMessageParamUnion {OfUser : & user }
1412
1412
}
1413
1413
1414
+ func ChatCompletionMessageParamOfAssistant [
1415
+ T string | []ChatCompletionAssistantMessageParamContentArrayOfContentPartUnion ,
1416
+ ](content T ) ChatCompletionMessageParamUnion {
1417
+ var assistant ChatCompletionAssistantMessageParam
1418
+ switch v := any (content ).(type ) {
1419
+ case string :
1420
+ assistant .Content .OfString = param .NewOpt (v )
1421
+ case []ChatCompletionAssistantMessageParamContentArrayOfContentPartUnion :
1422
+ assistant .Content .OfArrayOfContentParts = v
1423
+ }
1424
+ return ChatCompletionMessageParamUnion {OfAssistant : & assistant }
1425
+ }
1426
+
1414
1427
func ToolMessage [T string | []ChatCompletionContentPartTextParam ](content T , toolCallID string ) ChatCompletionMessageParamUnion {
1415
1428
var tool ChatCompletionToolMessageParam
1416
1429
switch v := any (content ).(type ) {
You can’t perform that action at this time.
0 commit comments