tabbyAPI-ollama/endpoints
kingbri 0eedc8ca14 API: Switch from request ID middleware to depends
Middleware runs on both the request and response. Therefore, streaming
responses had increased latency when processing tasks and sending
data to the client which resulted in erratic streaming behavior.

Use a depends to add request IDs since it only executes when the
request is run rather than expecting the response to be sent as well.

For the future, it would be best to think about limiting the time
between each tick of chunk data to be safe.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-07-22 12:19:46 -04:00
..
OAI API: Add ability to use request IDs 2024-07-21 21:01:05 -04:00
server.py API: Switch from request ID middleware to depends 2024-07-22 12:19:46 -04:00
utils.py Main: Make openapi export store locally 2024-07-08 14:54:06 -04:00