Only enable either predict
or stream-predict
API based on stream
argument to LitServer
#47
Labels
predict
or stream-predict
API based on stream
argument to LitServer
#47
LitServe uses
/predict
for regular and/stream-predict
endpoint path with streaming mode.We should only register either of these to FastAPI endpoint route or alternatively maybe just use
/predict
path for both the tasks by passing the relevant API function.To Reproduce
Steps to reproduce the behavior:
Run a server
LitServer(..., stream=True)
flagThe text was updated successfully, but these errors were encountered: