You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiontoolChoice= convertToolChoice(this, toolChoice)
% if toolChoice is emptyif isempty(toolChoice)
% if Tools is not empty, the default is 'auto'.if ~isempty(this.Tools)
toolChoice ="auto";
endelseifToolChoice~="auto"% if toolChoice is not empty, then it must be in the format% {"type": "function", "function": {"name": "my_function"}}
toolChoice = struct("type","function","function",struct("name",toolChoice));
endend
We should fix this
functiontoolChoice= convertToolChoice(this, toolChoice)
% if toolChoice is emptyif isempty(toolChoice)
% if Tools is not empty, the default is 'auto'.if ~isempty(this.Tools)
toolChoice ="auto";
endelseif ~ismember(ToolChoice,["auto","none"])
% if toolChoice is not empty, then it must be "none" or in the format% {"type": "function", "function": {"name": "my_function"}}
toolChoice = struct("type","function","function",struct("name",toolChoice));
endend
The text was updated successfully, but these errors were encountered:
Currently you cannot select "none" for ToolChoice
We should fix this
The text was updated successfully, but these errors were encountered: