Skip to content

Commit cf7fcd1

Browse files
committed
Fix chat example system prompt
1 parent f76bc85 commit cf7fcd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def format_prompt(user_prompt, first):
188188
global system_prompt, prompt_format
189189

190190
if first:
191-
return prompt_format.first_prompt(not system_prompt) \
191+
return prompt_format.first_prompt(bool(system_prompt)) \
192192
.replace("<|system_prompt|>", system_prompt) \
193193
.replace("<|user_prompt|>", user_prompt)
194194
else:

0 commit comments

Comments
 (0)