Sha256: 8f853ab379956a3d950a62f0c7b768bc8139d0e6f24be30b521096240e58a44f
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true require "roseflow/open_router/client" require "roseflow/open_router/config" require "roseflow/open_router/model_repository" module Roseflow module OpenRouter class Provider def initialize(config = Roseflow::OpenRouter::Config.new) @config = config end def client @client ||= Client.new(config, self) end def models @models ||= ModelRepository.new(self) end def completion(model:, prompt:, **options) raise DeprecationError, "This method is deprecated. Please use Model operations instead." end private attr_reader :config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roseflow-openrouter-0.2.0 | lib/roseflow/open_router/provider.rb |