forked from LAION-AI/Open-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStat.ts
56 lines (49 loc) · 1.18 KB
/
Stat.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export type HumanMessagesByLang = {
[key: string]: number;
};
export type HumanMessagesByRole = {
prompter: number;
assistant: number;
};
export type MessageTreesByState = {
growing: number;
ranking: number;
ready_for_export: number;
aborted_low_grade: number;
halted_by_moderator: number;
initial_prompt_review: number;
prompt_lottery_waiting: number;
};
export type MessageTreesStatesByLang = {
lang: string;
count: number;
state: string;
}[];
export type UserAcceptesdTos = {
count: number;
};
export type Stat = {
name: string;
last_updated: string;
stats: HumanMessagesByLang | HumanMessagesByRole | MessageTreesByState | MessageTreesStatesByLang | UserAcceptesdTos;
};
export type Stats = {
stats_by_name: {
human_messages_by_lang: Stat & {
stats: HumanMessagesByLang;
};
human_messages_by_role: Stat & {
stats: HumanMessagesByRole;
};
message_trees_by_state: Stat & {
stats: MessageTreesByState;
};
message_trees_states_by_lang: Stat & {
stats: MessageTreesStatesByLang;
};
users_accepted_tos: Stat & {
stats: UserAcceptesdTos;
};
};
};
export type StatNames = keyof Stats["stats_by_name"];