fixed inference bugs

add DONE during inference, correct handling on C# side
This commit is contained in:
Alex Bezdieniezhnykh
2025-02-01 02:09:11 +02:00
parent e7afa96a0b
commit 739759628a
23 changed files with 324 additions and 95 deletions
+5 -3
View File
@@ -8,9 +8,11 @@ cdef class RemoteCommand:
def __str__(self):
command_type_names = {
1: "INFERENCE",
2: "LOAD",
3: "GET_USER"
10: "GET_USER",
20: "LOAD",
30: "INFERENCE",
40: "STOP INFERENCE",
100: "EXIT"
}
data_str = f'. Data: {len(self.data)} bytes' if self.data else ''
return f'{command_type_names[self.command_type]}: {self.filename}{data_str}'