Skip to content

Commit ec8dee2

Browse files
Limit the length of the donated hardware name
1 parent c563cc8 commit ec8dee2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bot/exts/smart_eval/_cog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ async def improve_gpu_name(self, hardware_name: str) -> str:
5757
hardware_name = hardware_name.replace("*", "")
5858
hardware_name = hardware_name.replace("_", " ")
5959

60+
if len(hardware_name) > 800:
61+
return "Goose Processing Unit 69000"
62+
6063
return hardware_name
6164

6265
@commands.command()

0 commit comments

Comments
 (0)