Sha256: 04c0b190e1840c91fa8da428e41fb5912ce99bbccce8b636adbbf6f048350c51
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module Roseflow module StabilityAI class Provider def initialize(config = Config.new) @config = config end def models @models ||= ModelRepository.new(self) end def client @client ||= Client.new(config, self) end def call(operation, options, &block) models.find(options.fetch(:engine_id)).call(operation, options, &block) end private attr_reader :config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roseflow-stabilityai-0.1.0 | lib/roseflow/stabilityai/provider.rb |