Skip to content

Commit

Permalink
[Azure OpenAI] Remove the setter of the Functions property of ChatCom…
Browse files Browse the repository at this point in the history
…pletionsOptions (#41152)
  • Loading branch information
joseharriaga authored Jan 11, 2024
1 parent 964ad11 commit f0db70c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sdk/openai/Azure.AI.OpenAI/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Breaking Changes

- Removed the setter of the `Functions` property of the `ChatCompletionsOptions` class as per the guidelines for collection properties.

### Bugs Fixed

- Addressed an issue with the public constructor for `ChatCompletionsFunctionToolCall` that failed to set the tool call type in the corresponding request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public ChatCompletionsOptions(string deploymentName, System.Collections.Generic.
public string DeploymentName { get { throw null; } set { } }
public float? FrequencyPenalty { get { throw null; } set { } }
public Azure.AI.OpenAI.FunctionDefinition FunctionCall { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.AI.OpenAI.FunctionDefinition> Functions { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.AI.OpenAI.FunctionDefinition> Functions { get { throw null; } }
public int? MaxTokens { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.AI.OpenAI.ChatRequestMessage> Messages { get { throw null; } }
public float? NucleusSamplingFactor { get { throw null; } set { } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public partial class ChatCompletionsOptions
public IDictionary<int, int> TokenSelectionBiases { get; }

/// <summary> A list of functions the model may generate JSON inputs for. </summary>
public IList<FunctionDefinition> Functions { get; set; }
public IList<FunctionDefinition> Functions { get; }

/// <summary>
/// Controls how the model will use provided Functions.
Expand Down

0 comments on commit f0db70c

Please sign in to comment.