Sha256: f5152a5ec56f37761d14be59d1be5ef759e6e3d39deef0358502748be1a2396b
Contents?: true
Size: 439 Bytes
Versions: 5
Compression:
Stored size: 439 Bytes
Contents
# frozen_string_literal: true require 'openai' require_relative 'providers/openai' module NanoBot module Components class Provider def self.new(provider, environment: {}) case provider[:id] when 'openai' Providers::OpenAI.new(provider[:settings], provider[:credentials], environment:) else raise "Unsupported provider \"#{provider[:id]}\"" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems