lib/boxcars/prompt.rb in boxcars-0.5.1 vs lib/boxcars/prompt.rb in boxcars-0.6.1
- old
+ new
@@ -27,10 +27,10 @@
# compute the prompt parameters with input substitutions
# @param inputs [Hash] The inputs to use for the prompt.
# @return [Hash] The formatted prompt { prompt: "..."}
def as_messages(inputs)
- { messages: [{ role: :assistant, content: format(inputs) }] }
+ { messages: [{ role: :user, content: format(inputs) }] }
end
# tack on the ongoing conversation if present to the prompt
def with_conversation(conversation)
return self unless conversation