@nickyzj2023/utils
Preparing search index...
ai
ChatCompletions
ExtraBody
Type Alias ExtraBody
type
ExtraBody
=
{
stream
?:
boolean
;
toolHandlers
?:
Record
<
string
,
(
args
:
any
)
=>
any
|
Promise
<
any
>
>
;
tools
?:
ToolDefinition
[]
;
[
key
:
string
]:
any
;
}
Indexable
[
key
:
string
]:
any
其他额外参数
Index
Properties
stream?
tool
Handlers?
tools?
Properties
Optional
stream
stream
?:
boolean
是否使用流式传输,启用后函数返回异步迭代器
Optional
tool
Handlers
toolHandlers
?:
Record
<
string
,
(
args
:
any
)
=>
any
|
Promise
<
any
>
>
工具调用函数表,key 为工具名,value 为函数
Optional
tools
tools
?:
ToolDefinition
[]
工具列表
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
stream
tool
Handlers
tools
@nickyzj2023/utils
Loading...
其他额外参数