Skip to content

Commit

Permalink
Update assistant.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibondarev authored Oct 11, 2024
1 parent 0a27073 commit fe33fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/langchain/assistant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def instructions=(new_instructions)
@instructions = new_instructions

if @llm_adapter.support_system_message?
# Find message with role: "system" in messages and delete it from the messages array
# TODO: Should we still set a system message even if @instructions is "" or nil?
replace_system_message!(content: new_instructions) if @instructions
end
end
Expand Down

0 comments on commit fe33fa2

Please sign in to comment.