File tree Expand file tree Collapse file tree 3 files changed +227
-46
lines changed Expand file tree Collapse file tree 3 files changed +227
-46
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-de3e91790d0b9f3ce26d679ac07079880ccc695bd8c878f961c4d577a5025a2e .yml
3
- openapi_spec_hash : 4b44e3f287583d01fbe7b10cd943254a
4
- config_hash : cc92d0be2a0f3c77bfc988082dd0573e
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-82fd6fcb3eea81cbbe09a6f831c82219f1251e1b76474b4c41f424bf277e6a71 .yml
3
+ openapi_spec_hash : c8d54bd1ae3d704f6b6f72ffd2f876d8
4
+ config_hash : 3315d58b60faf63b1bee251b81837cda
Original file line number Diff line number Diff line change @@ -1411,19 +1411,6 @@ 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
-
1427
1414
func ToolMessage [T string | []ChatCompletionContentPartTextParam ](content T , toolCallID string ) ChatCompletionMessageParamUnion {
1428
1415
var tool ChatCompletionToolMessageParam
1429
1416
switch v := any (content ).(type ) {
You can’t perform that action at this time.
0 commit comments