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
Copy file name to clipboardExpand all lines: Sources/OpenAI/Public/Shared/ToolChoice.swift
+23-9
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,24 @@
8
8
import Foundation
9
9
10
10
/// string `none` means the model will not call a function and instead generates a message.
11
+
///
11
12
/// `auto` means the model can pick between generating a message or calling a function.
13
+
///
12
14
/// `object` Specifies a tool the model should use. Use to force the model to call a specific function. The type of the tool. Currently, only` function` is supported. `{"type: "function", "function": {"name": "my_function"}}`
15
+
///
16
+
/// `required` To force the model to always call one or more functions, you can set tool_choice: "required". The model will then select which function(s) to call.
0 commit comments