Update crs_arena/battle_manager.py
Browse files- crs_arena/battle_manager.py +12 -8
crs_arena/battle_manager.py
CHANGED
@@ -36,13 +36,13 @@ CONVERSATION_COUNTS.update(
|
|
36 |
{
|
37 |
"kbrd_redial": 7,
|
38 |
"kbrd_opendialkg": 7,
|
39 |
-
"unicrs_redial":
|
40 |
-
"unicrs_opendialkg":
|
41 |
-
"barcor_redial":
|
42 |
-
"barcor_opendialkg":
|
43 |
-
"crbcrs_redial":
|
44 |
-
"chatgpt_opendialkg":
|
45 |
-
"chatgpt_redial":
|
46 |
}
|
47 |
)
|
48 |
|
@@ -105,6 +105,10 @@ def cache_fighters(n: Optional[int] = None) -> None:
|
|
105 |
"""
|
106 |
logging.info(f"Caching {n} CRS fighters.")
|
107 |
for i, (model_name, config_path) in enumerate(CRS_MODELS.items()):
|
108 |
-
|
|
|
|
|
|
|
|
|
109 |
if n is not None and i == n:
|
110 |
break
|
|
|
36 |
{
|
37 |
"kbrd_redial": 7,
|
38 |
"kbrd_opendialkg": 7,
|
39 |
+
"unicrs_redial": 10,
|
40 |
+
"unicrs_opendialkg": 10,
|
41 |
+
"barcor_redial": 20,
|
42 |
+
"barcor_opendialkg": 20,
|
43 |
+
"crbcrs_redial": 20,
|
44 |
+
"chatgpt_opendialkg": 20,
|
45 |
+
"chatgpt_redial": 20,
|
46 |
}
|
47 |
)
|
48 |
|
|
|
105 |
"""
|
106 |
logging.info(f"Caching {n} CRS fighters.")
|
107 |
for i, (model_name, config_path) in enumerate(CRS_MODELS.items()):
|
108 |
+
try:
|
109 |
+
get_crs_model(model_name, config_path)
|
110 |
+
except Exception as e:
|
111 |
+
logging.error(f"Caching CRS fighters: {e}")
|
112 |
+
get_crs_model.clear(model_name, config_path)
|
113 |
if n is not None and i == n:
|
114 |
break
|