Module: LLM::OpenAI::Response::Image
- Defined in:
- lib/llm/providers/openai/response/image.rb
Instance Method Summary collapse
Instance Method Details
#urls ⇒ Object
5 6 7 |
# File 'lib/llm/providers/openai/response/image.rb', line 5 def urls data.filter_map { _1["url"] } end |
#images ⇒ Object
9 10 11 12 13 14 |
# File 'lib/llm/providers/openai/response/image.rb', line 9 def images data.filter_map do next unless _1["b64_json"] StringIO.new(_1["b64_json"].unpack1("m0")) end end |