diff options
Diffstat (limited to 'components/provider.rb')
-rw-r--r-- | components/provider.rb | 5 |
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 |