Skip to content

Commit bba2404

Browse files
committed
small typo fix
1 parent 2536ab3 commit bba2404

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

OpenAI.SDK/ObjectModels/RequestModels/ChatCompletionCreateRequest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ public class ChatCompletionCreateRequest : IModelValidate, IOpenAiModels.ITemper
2424
public IList<FunctionDefinition>? Functions { get; set; }
2525

2626
[JsonIgnore]
27-
public object? FunctionAsObject { get; set; }
27+
public object? FunctionsAsObject { get; set; }
2828

2929
[JsonPropertyName("functions")]
3030
public object? FunctionCalculated
3131
{
3232
get
3333
{
34-
if (FunctionAsObject != null && Functions != null)
34+
if (FunctionsAsObject != null && Functions != null)
3535
{
3636
throw new ValidationException("FunctionAsObject and Functions can not be assigned at the same time. One of them is should be null.");
3737
}
3838

39-
return Functions ?? FunctionAsObject;
39+
return Functions ?? FunctionsAsObject;
4040
}
4141
}
4242

0 commit comments

Comments
 (0)