class Riffer::Providers::OpenAI
rbs_inline: enabled
Constants
- FINISH_REASONS
-
The Responses API has no finish_reason field, and an
incompletestatus is only meaningful together withincomplete_details.reason. - WEB_SEARCH_SOURCES_INCLUDE
-
Without this include, a web_search_callβs search action carries no sources.
- WEB_SEARCH_TOOL_TYPE
Public Class Methods
Source
# File lib/riffer/providers/open_ai.rb, line 38 def initialize super depends_on "openai" end
Calls superclass method
Source
# File lib/riffer/providers/open_ai.rb, line 32 def self.semconv_provider_name "openai" end
Source
# File lib/riffer/providers/open_ai.rb, line 26 def self.supports_deferred_tools? true end
Public Instance Methods
Source
# File lib/riffer/providers/open_ai.rb, line 45 def file_delivery(file) file.image? ? :url : :base64 end