summaryrefslogtreecommitdiff
path: root/components/provider.rb
diff options
context:
space:
mode:
Diffstat (limited to 'components/provider.rb')
-rw-r--r--components/provider.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/provider.rb b/components/provider.rb
index 3414009..d83319f 100644
--- a/components/provider.rb
+++ b/components/provider.rb
@@ -1,8 +1,7 @@
# frozen_string_literal: true
-require 'openai'
-
require_relative 'providers/openai'
+require_relative 'providers/google'
module NanoBot
module Components
@@ -11,6 +10,8 @@ module NanoBot
case provider[:id]
when 'openai'
Providers::OpenAI.new(provider[:settings], provider[:credentials], environment:)
+ when 'google'
+ Providers::Google.new(provider[:options], provider[:settings], provider[:credentials], environment:)
else
raise "Unsupported provider \"#{provider[:id]}\""
end