Spaces:
Sleeping
Sleeping
Commit
·
ba0d874
1
Parent(s):
2a5b08d
drops unused response file
Browse files- responses.py +0 -27
responses.py
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
from pydantic import BaseModel, Field
|
2 |
-
from typing import List, Dict, Any
|
3 |
-
|
4 |
-
|
5 |
-
class TextStreamResponse(BaseModel):
|
6 |
-
streamed_chunks: List[str] = Field(
|
7 |
-
default_factory=list, description="List of streamed chunks."
|
8 |
-
)
|
9 |
-
streamed_chunks_timings: List[float] = Field(
|
10 |
-
default_factory=list, description="List of streamed chunks timings, in seconds."
|
11 |
-
)
|
12 |
-
uid: int = Field(0, description="UID of queried miner")
|
13 |
-
completion: str = Field(
|
14 |
-
"", description="The final completed string from the stream."
|
15 |
-
)
|
16 |
-
timing: float = Field(
|
17 |
-
0, description="Timing information of all request, in seconds."
|
18 |
-
)
|
19 |
-
|
20 |
-
def to_dict(self):
|
21 |
-
return {
|
22 |
-
"streamed_chunks": self.streamed_chunks,
|
23 |
-
"streamed_chunks_timings": self.streamed_chunks_timings,
|
24 |
-
"uid": self.uid,
|
25 |
-
"completion": self.completion,
|
26 |
-
"timing": self.timing,
|
27 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|