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
# @param response_format [OpenAI::ResponseFormatText, OpenAI::ResponseFormatJSONSchema, OpenAI::ResponseFormatJSONObject] An object specifying the format that the model must output.
374
+
# @param response_format [OpenAI::ResponseFormatText, OpenAI::ResponseFormatJSONSchema, OpenAI::StructuredOutput::JsonSchemaConverter, OpenAI::ResponseFormatJSONObject] An object specifying the format that the model must output.
370
375
#
371
376
# @param seed [Integer, nil] This feature is in Beta.
372
377
#
@@ -382,7 +387,7 @@ class CompletionCreateParams < OpenAI::Internal::Type::BaseModel
382
387
#
383
388
# @param tool_choice [Symbol, OpenAI::Chat::ChatCompletionToolChoiceOption::Auto, OpenAI::Chat::ChatCompletionNamedToolChoice] Controls which (if any) tool is called by the model.
384
389
#
385
-
# @param tools [Array<OpenAI::Chat::ChatCompletionTool>] A list of tools the model may call. Currently, only functions are supported as a
390
+
# @param tools [Array<OpenAI::Chat::ChatCompletionTool, OpenAI::StructuredOutput::JsonSchemaConverter>] A list of tools the model may call. Currently, only functions are supported as a
386
391
#
387
392
# @param top_logprobs [Integer, nil] An integer between 0 and 20 specifying the number of most likely tokens to
388
393
#
@@ -525,6 +530,12 @@ module ResponseFormat
525
530
# Learn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).
526
531
variant->{OpenAI::ResponseFormatJSONSchema}
527
532
533
+
# An {OpenAI::BaseModel} can be provided and implicitly converted into {OpenAI::ResponseFormatJSONSchema}.
534
+
# See examples for more details.
535
+
#
536
+
# Learn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).
0 commit comments