Skip to content

Commit

Permalink
Merge pull request #631 from betalgo/feature/tool-strict-type
Browse files Browse the repository at this point in the history
added Tool Strict Mode.
  • Loading branch information
kayhantolga authored Sep 21, 2024
2 parents 7a3e743 + d453c5d commit 7fdf98f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OpenAI.SDK/ObjectModels/RequestModels/ToolDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public class ToolDefinition
[JsonPropertyName("type")]
public string Type { get; set; }

/// <summary>
/// Structured Outputs for function calling can be enabled with a single parameter, just by supplying strict: true.
/// Please note: This field is not mentioned in the API documentation but is referenced in other documents.
/// </summary>
[JsonPropertyName("strict")]
public bool? Strict { get; set; }

/// <summary>
/// A list of functions the model may generate JSON inputs for.
Expand Down

0 comments on commit 7fdf98f

Please sign in to comment.