summaryrefslogtreecommitdiff
path: root/components/provider.rb
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-12-28 19:43:00 -0300
committericebaker <icebaker@proton.me>2023-12-28 19:43:00 -0300
commit46638e0b4e1809d683f470922f9cc27ab161c248 (patch)
treea6135a74b8c56abe435fb557c873273e32f86eb1 /components/provider.rb
parent347ac029c922fbb3843ec22324527f2c6b3ba9a9 (diff)
upgrading gemini-ai and adding support for mistral-ai
Diffstat (limited to 'components/provider.rb')
-rw-r--r--components/provider.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/provider.rb b/components/provider.rb
index 57f1cca..bdf3639 100644
--- a/components/provider.rb
+++ b/components/provider.rb
@@ -1,7 +1,8 @@
# frozen_string_literal: true
-require_relative 'providers/openai'
require_relative 'providers/google'
+require_relative 'providers/mistral'
+require_relative 'providers/openai'
module NanoBot
module Components
@@ -12,6 +13,8 @@ module NanoBot
Providers::OpenAI.new(nil, provider[:settings], provider[:credentials], environment:)
when 'google'
Providers::Google.new(provider[:options], provider[:settings], provider[:credentials], environment:)
+ when 'mistral'
+ Providers::Mistral.new(provider[:options], provider[:settings], provider[:credentials], environment:)
else
raise "Unsupported provider \"#{provider[:id]}\""
end