diff options
author | icebaker <icebaker@proton.me> | 2023-12-15 08:04:27 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-12-15 08:04:27 -0300 |
commit | fef3d5b3b2f823999fae68276382fe33872350c4 (patch) | |
tree | f41758bcc6c9e7e5805269afe4104a636dc17baa /spec/logic | |
parent | b9a22a449d33d254f2c1a7f3d2196712ff6d9b8a (diff) |
improving provider options
Diffstat (limited to 'spec/logic')
-rw-r--r-- | spec/logic/cartridge/streaming_spec.rb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/spec/logic/cartridge/streaming_spec.rb b/spec/logic/cartridge/streaming_spec.rb index 466dd0b..4b71dfd 100644 --- a/spec/logic/cartridge/streaming_spec.rb +++ b/spec/logic/cartridge/streaming_spec.rb @@ -7,11 +7,22 @@ require_relative '../../../logic/cartridge/streaming' RSpec.describe NanoBot::Logic::Cartridge::Streaming do context 'interfaces override' do context 'defaults' do - let(:cartridge) { {} } + context 'openai' do + let(:cartridge) { { provider: { id: 'openai' } } } - it 'uses default values when appropriate' do - expect(described_class.enabled?(cartridge, :repl)).to be(true) - expect(described_class.enabled?(cartridge, :eval)).to be(true) + it 'uses default values when appropriate' do + expect(described_class.enabled?(cartridge, :repl)).to be(true) + expect(described_class.enabled?(cartridge, :eval)).to be(true) + end + end + + context 'google' do + let(:cartridge) { { provider: { id: 'google' } } } + + it 'uses default values when appropriate' do + expect(described_class.enabled?(cartridge, :repl)).to be(true) + expect(described_class.enabled?(cartridge, :eval)).to be(true) + end end end |