class Riffer::Providers::OpenAI
OpenAI provider for GPT models. Requires the openai gem.
Constants
- FINISH_REASONS
-
The Responses API has no finish_reason field. The response
statusis the primary signal; anincompletestatus is only meaningful together withincomplete_details.reason, so that branch nests one level. - WEB_SEARCH_TOOL_TYPE
Public Class Methods
Source
# File lib/riffer/providers/open_ai.rb, line 32 def initialize super depends_on "openai" end
Calls superclass method
Source
# File lib/riffer/providers/open_ai.rb, line 26 def self.semconv_provider_name "openai" end
The GenAI semconv well-known provider name.
Public Instance Methods
Source
# File lib/riffer/providers/open_ai.rb, line 39 def file_delivery(file) file.image? ? :url : :base64 end