Optionaloptions: RequestOptions<unknown>Optionaloptions: RequestOptions<unknown>Optionaloptions: RequestOptions<unknown>A convenience helper for using tool calls with the /chat/completions endpoint which automatically calls the JavaScript functions you provide and sends their results back to the /chat/completions endpoint, looping as long as the model requests function calls.
For more details and examples, see the docs
Optionaloptions: RequestOptions<unknown>Optionaloptions: RequestOptions<unknown>Creates a chat completion stream
Optionaloptions: RequestOptions<unknown>
Deprecated
runToolsinstead.