Skip to content

Commit ae4521c

Browse files
committed
fix default instructions to prevent llm from giving up
1 parent 8daea42 commit ae4521c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/jobs/generate_message_response_job.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def perform(_message_id)
114114
<{{PROGRAM_TAG}}>
115115
# Prompt:
116116
You are a helpful assistant that follows the instructions below to assist the user effectively.
117+
Unless otherwise specified in the instructions, you should use the information in the CONTEXT section to respond to the question or topic in the <{{DATA_TAG}}> section.
117118
118119
# Special Instructions:
119120
#{message.chat.assistant.instructions}
@@ -216,12 +217,10 @@ def perform(_message_id)
216217
llm_message.from = :assistant
217218

218219
begin
219-
start_time = Time.now
220+
Time.now
220221
llm_message.generating!
221222
llm_message.content = get_generation(llm_message.prompt)
222-
end_time = Time.now
223-
224-
generation_time = end_time - start_time
223+
Time.now
225224

226225
llm_message.save
227226
llm_message.ready!

0 commit comments

Comments
 (0)