You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# there are some difference in content key for conversation templates, simplified templates align to use common
437
+
ifnot"llava"inmodel_type:
438
+
origin_history_messages= [
439
+
{
440
+
"role": "system",
441
+
"content": "You are a friendly chatbot who always responds in the style of a pirate",
442
+
},
443
+
{"role": "user", "content": "How many helicopters can a human eat in one sitting?"},
444
+
{
445
+
"role": "assistant",
446
+
"content": " There is no specific limit for how many helicopters a human can eat in one sitting, but it is not recommended to consume large quantities of helicopters.",
447
+
},
448
+
{"role": "user", "content": "Why is it not recommended?"},
449
+
]
450
+
else:
451
+
origin_history_messages= [
452
+
{
453
+
"role": "system",
454
+
"content": [
455
+
{
456
+
"type": "text",
457
+
"text": "You are a friendly chatbot who always responds in the style of a pirate",
458
+
}
459
+
],
460
+
},
461
+
{
462
+
"role": "user",
463
+
"content": [
464
+
{"type": "text", "text": "How many helicopters can a human eat in one sitting?"}
465
+
],
466
+
},
467
+
{
468
+
"role": "assistant",
469
+
"content": [
470
+
{
471
+
"type": "text",
472
+
"text": "There is no specific limit for how many helicopters a human can eat in one sitting, but it is not recommended to consume large quantities of helicopters.",
473
+
}
474
+
],
475
+
},
476
+
{"role": "user", "content": [{"type": "text", "text": "Why is it not recommended?"}]},
477
+
]
478
+
history_messages= [
479
+
{
480
+
"role": "system",
481
+
"content": "You are a friendly chatbot who always responds in the style of a pirate",
482
+
},
483
+
{"role": "user", "content": "How many helicopters can a human eat in one sitting?"},
484
+
{
485
+
"role": "assistant",
486
+
"content": "There is no specific limit for how many helicopters a human can eat in one sitting, but it is not recommended to consume large quantities of helicopters.",
487
+
},
488
+
{"role": "user", "content": "Why is it not recommended?"},
0 commit comments