Sha256: 7f2f8011c849a59f2a79c9e33c83a0a67e1448e1e75a0a3fc898901f4b574d57
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nano-bots-0.1.1 | components/provider.rb |
nano-bots-0.1.0 | components/provider.rb |