summaryrefslogtreecommitdiff
path: root/components/provider.rb
diff options
context:
space:
mode:
Diffstat (limited to 'components/provider.rb')
-rw-r--r--components/provider.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/provider.rb b/components/provider.rb
index dbfc8bd..3138cc4 100644
--- a/components/provider.rb
+++ b/components/provider.rb
@@ -7,10 +7,10 @@ require_relative './providers/openai'
module NanoBot
module Components
class Provider
- def self.new(provider)
+ def self.new(provider, environment: {})
case provider[:name]
when 'openai'
- Providers::OpenAI.new(provider[:settings])
+ Providers::OpenAI.new(provider[:settings], environment:)
else
raise "Unsupported provider #{provider[:name]}"
end