Sha256: ba69da276662092ed228de355c06228aab3ebfe2727c62470d19055dc5855107

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

require_relative "./base_response"

module Roseflow
  module StabilityAI
    module Responses
      class TextToImageResponse < BaseResponse
        transform_keys { |key| key.to_s.underscore.to_sym }

        attribute :artifacts, Types::Array do
          attribute :base64, Types::String
          attribute :finish_reason, Types::String
          attribute :seed, Types::Integer
        end

        alias_method :images, :artifacts
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roseflow-stabilityai-0.1.0 lib/roseflow/stabilityai/responses/text_to_image_response.rb