File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -310,10 +310,10 @@ def get_examples( # noqa: C901
310
310
311
311
# System prompt and instruction
312
312
if use_chat_template :
313
- if system_prompt is not None : # We add system prompt and instruction jointly if possible
314
- examples . insert ( 0 , { "role" : "system" , " content": system_prompt + instruction })
315
- else : # Else we add the instruction to the first example
316
- examples [ 0 ][ "content" ] = instruction + examples [ 0 ][ "content" ]
313
+ # We add the instruction to the first example
314
+ examples [ 0 ][ " content"] = instruction + examples [ 0 ][ "content" ]
315
+ if system_prompt is not None : # We add system prompt if available
316
+ examples . insert ( 0 , { "role" : "system" , "content" : system_prompt })
317
317
return examples
318
318
else :
319
319
system_prompt = system_prompt if system_prompt is not None else ""
You can’t perform that action at this time.
0 commit comments