components/providers/openai.rb in nano-bots-1.0.1 vs components/providers/openai.rb in nano-bots-1.1.0
- old
+ new
@@ -47,10 +47,10 @@
else
{ role: event[:who] == 'user' ? 'user' : 'assistant', content: event[:message] }
end
end
- %i[instruction backdrop directive].each do |key|
+ %i[backdrop directive].each do |key|
next unless input[:behavior][key]
messages.prepend(
{ role: key == :directive ? 'system' : 'user',
content: input[:behavior][key] }