Module: LLM::OpenAI::ResponseAdapter::Image

Defined in:
lib/llm/providers/openai/response_adapter/image.rb

Instance Method Summary collapse

Instance Method Details

#imagesObject



5
6
7
8
9
10
# File 'lib/llm/providers/openai/response_adapter/image.rb', line 5

def images
  data.filter_map do
    next unless _1["b64_json"]
    StringIO.new(_1["b64_json"].unpack1("m0"))
  end
end