summaryrefslogtreecommitdiff
path: root/logic/cartridge
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-12-29 16:10:42 -0300
committericebaker <icebaker@proton.me>2023-12-29 16:10:42 -0300
commitd9a5079555d24a88f68a79dd84207e9cfb034e3c (patch)
tree0ac0593bee23a38062bc1af3e3e4c443dac24a8a /logic/cartridge
parent91c635366bab160b81b2c1690234f97040d0d60b (diff)
adding support to cohere
Diffstat (limited to 'logic/cartridge')
-rw-r--r--logic/cartridge/streaming.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/cartridge/streaming.rb b/logic/cartridge/streaming.rb
index 0b9b19f..23e88ac 100644
--- a/logic/cartridge/streaming.rb
+++ b/logic/cartridge/streaming.rb
@@ -8,7 +8,7 @@ module NanoBot
module Streaming
def self.enabled?(cartridge, interface)
provider_stream = case Helpers::Hash.fetch(cartridge, %i[provider id])
- when 'openai', 'mistral'
+ when 'openai', 'mistral', 'cohere'
Helpers::Hash.fetch(cartridge, %i[provider settings stream])
when 'google'
Helpers::Hash.fetch(cartridge, %i[provider options stream])