Skip to content

Commit 5fb4f2b

Browse files
authored
Fix issue with null system prompt after #104 (#107)
# What does this PR do? Fixes an issue with null system prompt introduced in #104
1 parent 2aa5847 commit 5fb4f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skythought/evals/inference_and_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def generate_responses_for_dataset(
237237
# Prepare conversations
238238
conversations = handler.make_conversations(
239239
remaining_data,
240-
str(model_config.system_prompt),
240+
str(model_config.system_prompt) if model_config.system_prompt else None,
241241
model_config.user_template,
242242
model_config.assistant_prefill,
243243
)

0 commit comments

Comments
 (0)