@@ -161,7 +161,7 @@ def _format_response(
161
161
llama_3_prompt_markers = {
162
162
Roles .system : PromptMarkers ("""<|start_header_id|>system<|end_header_id|>\n """ , """<|eot_id|>""" ),
163
163
Roles .user : PromptMarkers ("""<|start_header_id|>user<|end_header_id|>\n """ , """<|eot_id|>""" ),
164
- Roles .assistant : PromptMarkers ("""<|start_header_id|>assistant<|end_header_id|>\n """ , """<|eot_id|>""" ),
164
+ Roles .assistant : PromptMarkers ("""<|start_header_id|>assistant<|end_header_id|>\n \n """ , """<|eot_id|>""" ),
165
165
Roles .tool : PromptMarkers ("""<|start_header_id|>function_calling_results<|end_header_id|>\n """ , """<|eot_id|>""" ),
166
166
}
167
167
@@ -181,7 +181,7 @@ def _format_response(
181
181
gemma_2_prompt_markers = {
182
182
Roles .system : PromptMarkers ("""""" , """\n \n """ ),
183
183
Roles .user : PromptMarkers ("""<start_of_turn>user\n """ , """<end_of_turn>\n """ ),
184
- Roles .assistant : PromptMarkers ("""<start_of_turn>model\n """ , """<end_of_turn>\n """ ),
184
+ Roles .assistant : PromptMarkers ("""<start_of_turn>model\n \n """ , """<end_of_turn>\n """ ),
185
185
Roles .tool : PromptMarkers ("" , "" ),
186
186
}
187
187
code_ds_prompt_markers = {
@@ -344,7 +344,7 @@ def _format_response(
344
344
"" ,
345
345
phi_3_chat_prompt_markers ,
346
346
True ,
347
- ["<|end|>" , "<|end_of_turn |>" ],
347
+ ["<|end|>" , "<|endoftext |>" ],
348
348
use_user_role_for_function_call_result = True ,
349
349
)
350
350
0 commit comments