Skip to content

Commit

Permalink
[OpenAI] Fix ChatCompletionsNamedFunctionToolSelection (#27487)
Browse files Browse the repository at this point in the history
  • Loading branch information
deyaaeldeen authored Jan 29, 2024
1 parent f145d51 commit 0fb6b39
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ model ChatCompletionsNamedFunctionToolSelection
@doc("The object type, which is always 'function'.")
type: "function";

@doc("The function that should be called.")
function: ChatCompletionsFunctionToolSelection;
}

@added(ServiceApiVersions.v2023_12_01_Preview)
@doc("A tool selection of a specific, named function tool that will limit chat completions to using the named function.")
model ChatCompletionsFunctionToolSelection {
@doc("The name of the function that should be called.")
name: string;
}
Expand Down

0 comments on commit 0fb6b39

Please sign in to comment.