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
Copy file name to clipboardExpand all lines: tests/messages.py
+87-16Lines changed: 87 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,3 @@
1
-
user_message= {
2
-
"message": {
3
-
"role": "user",
4
-
"content": "Hello, how are you?",
5
-
},
6
-
"count": 13,
7
-
}
8
-
9
-
user_message_unicode= {
10
-
"message": {
11
-
"role": "user",
12
-
"content": "á",
13
-
},
14
-
"count": 8,
15
-
}
16
-
17
1
system_message_short= {
18
2
"message": {
19
3
"role": "system",
@@ -30,6 +14,14 @@
30
14
"count": 25,
31
15
}
32
16
17
+
system_message_long= {
18
+
"message": {
19
+
"role": "system",
20
+
"content": "Assistant helps the company employees with their healthcare plan questions, and questions about the employee handbook. Be brief in your answers.",
21
+
},
22
+
"count": 31,
23
+
}
24
+
33
25
system_message_unicode= {
34
26
"message": {
35
27
"role": "system",
@@ -47,6 +39,68 @@
47
39
"count": 20, # Less tokens in older vision preview models
48
40
}
49
41
42
+
user_message= {
43
+
"message": {
44
+
"role": "user",
45
+
"content": "Hello, how are you?",
46
+
},
47
+
"count": 13,
48
+
}
49
+
50
+
user_message_unicode= {
51
+
"message": {
52
+
"role": "user",
53
+
"content": "á",
54
+
},
55
+
"count": 8,
56
+
}
57
+
58
+
user_message_perf= {
59
+
"message": {
60
+
"role": "user",
61
+
"content": "What happens in a performance review?",
62
+
},
63
+
"count": 14,
64
+
}
65
+
66
+
assistant_message_perf= {
67
+
"message": {
68
+
"role": "assistant",
69
+
"content": "During the performance review at Contoso Electronics, the supervisor will discuss the employee's performance over the past year and provide feedback on areas for improvement. They will also provide an opportunity for the employee to discuss their goals and objectives for the upcoming year. The review is a two-way dialogue between managers and employees, and employees will receive a written summary of their performance review which will include a rating of their performance, feedback, and goals and objectives for the upcoming year [employee_handbook-3.pdf].",
70
+
},
71
+
"count": 106,
72
+
}
73
+
74
+
assistant_message_perf_short= {
75
+
"message": {
76
+
"role": "assistant",
77
+
"content": "The supervisor will discuss the employee's performance and provide feedback on areas for improvement. They will also provide an opportunity for the employee to discuss their goals and objectives for the upcoming year. The review is a two-way dialogue between managers and employees, and employees will receive a written summary of their performance review which will include a rating of their performance, feedback, and goals for the upcoming year [employee_handbook-3.pdf].",
78
+
},
79
+
"count": 91,
80
+
}
81
+
82
+
user_message_dresscode= {
83
+
"message": {
84
+
"role": "user",
85
+
"content": "Is there a dress code?",
86
+
},
87
+
"count": 13,
88
+
}
89
+
90
+
assistant_message_dresscode= {
91
+
"message": {
92
+
"role": "assistant",
93
+
"content": "Yes, there is a dress code at Contoso Electronics. Look sharp! [employee_handbook-1.pdf]",
0 commit comments