@@ -322,6 +322,8 @@ type ChatCompletionAssistantMessageParam struct {
322
322
Content param.Field [[]ChatCompletionAssistantMessageParamContentUnion ] `json:"content"`
323
323
// Deprecated and replaced by `tool_calls`. The name and arguments of a function
324
324
// that should be called, as generated by the model.
325
+ //
326
+ // Deprecated: deprecated
325
327
FunctionCall param.Field [ChatCompletionAssistantMessageParamFunctionCall ] `json:"function_call"`
326
328
// An optional name for the participant. Provides the model information to
327
329
// differentiate between participants of the same role.
@@ -410,6 +412,8 @@ func (r ChatCompletionAssistantMessageParamContentType) IsKnown() bool {
410
412
411
413
// Deprecated and replaced by `tool_calls`. The name and arguments of a function
412
414
// that should be called, as generated by the model.
415
+ //
416
+ // Deprecated: deprecated
413
417
type ChatCompletionAssistantMessageParamFunctionCall struct {
414
418
// The arguments to call the function with, as generated by the model in JSON
415
419
// format. Note that the model does not always generate valid JSON, and may
@@ -617,6 +621,8 @@ type ChatCompletionChunkChoicesDelta struct {
617
621
Content string `json:"content,nullable"`
618
622
// Deprecated and replaced by `tool_calls`. The name and arguments of a function
619
623
// that should be called, as generated by the model.
624
+ //
625
+ // Deprecated: deprecated
620
626
FunctionCall ChatCompletionChunkChoicesDeltaFunctionCall `json:"function_call"`
621
627
// The refusal message generated by the model.
622
628
Refusal string `json:"refusal,nullable"`
@@ -648,6 +654,8 @@ func (r chatCompletionChunkChoicesDeltaJSON) RawJSON() string {
648
654
649
655
// Deprecated and replaced by `tool_calls`. The name and arguments of a function
650
656
// that should be called, as generated by the model.
657
+ //
658
+ // Deprecated: deprecated
651
659
type ChatCompletionChunkChoicesDeltaFunctionCall struct {
652
660
// The arguments to call the function with, as generated by the model in JSON
653
661
// format. Note that the model does not always generate valid JSON, and may
@@ -1114,6 +1122,7 @@ func (r ChatCompletionFunctionCallOptionParam) MarshalJSON() (data []byte, err e
1114
1122
1115
1123
func (r ChatCompletionFunctionCallOptionParam ) implementsChatCompletionNewParamsFunctionCallUnion () {}
1116
1124
1125
+ // Deprecated: deprecated
1117
1126
type ChatCompletionFunctionMessageParam struct {
1118
1127
// The contents of the function message.
1119
1128
Content param.Field [string ] `json:"content,required"`
@@ -1158,6 +1167,8 @@ type ChatCompletionMessage struct {
1158
1167
Audio ChatCompletionAudio `json:"audio,nullable"`
1159
1168
// Deprecated and replaced by `tool_calls`. The name and arguments of a function
1160
1169
// that should be called, as generated by the model.
1170
+ //
1171
+ // Deprecated: deprecated
1161
1172
FunctionCall ChatCompletionMessageFunctionCall `json:"function_call"`
1162
1173
// The tool calls generated by the model, such as function calls.
1163
1174
ToolCalls []ChatCompletionMessageToolCall `json:"tool_calls"`
@@ -1227,6 +1238,8 @@ func (r ChatCompletionMessageRole) IsKnown() bool {
1227
1238
1228
1239
// Deprecated and replaced by `tool_calls`. The name and arguments of a function
1229
1240
// that should be called, as generated by the model.
1241
+ //
1242
+ // Deprecated: deprecated
1230
1243
type ChatCompletionMessageFunctionCall struct {
1231
1244
// The arguments to call the function with, as generated by the model in JSON
1232
1245
// format. Note that the model does not always generate valid JSON, and may
@@ -1968,6 +1981,8 @@ func (r ChatCompletionNewParams) MarshalJSON() (data []byte, err error) {
1968
1981
//
1969
1982
// Satisfied by [ChatCompletionNewParamsFunctionCallBehavior],
1970
1983
// [ChatCompletionFunctionCallOptionParam].
1984
+ //
1985
+ // Deprecated: deprecated
1971
1986
type ChatCompletionNewParamsFunctionCallUnion interface {
1972
1987
implementsChatCompletionNewParamsFunctionCallUnion ()
1973
1988
}
@@ -1993,6 +2008,7 @@ func (r ChatCompletionNewParamsFunctionCallBehavior) IsKnown() bool {
1993
2008
func (r ChatCompletionNewParamsFunctionCallBehavior ) implementsChatCompletionNewParamsFunctionCallUnion () {
1994
2009
}
1995
2010
2011
+ // Deprecated: deprecated
1996
2012
type ChatCompletionNewParamsFunction struct {
1997
2013
// The name of the function to be called. Must be a-z, A-Z, 0-9, or contain
1998
2014
// underscores and dashes, with a maximum length of 64.
0 commit comments