File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414from abc import abstractmethod
1515from collections .abc import AsyncGenerator , Callable , Generator
16- from typing import TYPE_CHECKING , Optional , Union
16+ from typing import TYPE_CHECKING , Any , Optional , Union
1717
1818if TYPE_CHECKING :
1919 from litserve import LitAPI , LitServer
@@ -59,12 +59,12 @@ def endpoints(self):
5959 return self ._endpoints .copy ()
6060
6161 @abstractmethod
62- def decode_request (self , request , meta_kwargs ) :
62+ def decode_request (self , request , context_kwargs ) -> Any :
6363 """Convert the request payload to your model input."""
6464 pass
6565
6666 @abstractmethod
67- def encode_response (self , output , meta_kwargs ) :
67+ def encode_response (self , output , context_kwargs ) -> Any :
6868 """Convert the model output to a response payload.
6969
7070 To enable streaming, it should yield the output.
You can’t perform that action at this time.
0 commit comments