Skip to content

Commit

Permalink
Fix Typo toolChoice, not ToolChoice
Browse files Browse the repository at this point in the history
  • Loading branch information
toshiakit committed Feb 29, 2024
1 parent da8e981 commit 5505b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openAIChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function mustBeValidFunctionCall(this, functionCall)
if ~isempty(this.Tools)
toolChoice = "auto";
end
elseif ~ismember(ToolChoice,["auto","none"])
elseif ~ismember(toolChoice,["auto","none"])
% if toolChoice is not empty, then it must be "auto", "none" or in the format
% {"type": "function", "function": {"name": "my_function"}}
toolChoice = struct("type","function","function",struct("name",toolChoice));
Expand Down

0 comments on commit 5505b32

Please sign in to comment.