tabbyAPI-ollama/endpoints
kingbri d710a1b441 OAI: Switch to background task for disconnect checks
Waiting for request disconnect takes some extra time and allows
generation chunks to pile up, resulting in large payloads being sent
at once not making up a smooth stream.

Use the polling method in non-streaming requests by creating a background
task and then check if the task is done, signifying that the request
has been disconnected.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-05-26 13:52:20 -04:00
..
OAI OAI: Switch to background task for disconnect checks 2024-05-26 13:52:20 -04:00
server.py API: Move OAI to APIRouter 2024-04-06 01:25:31 -04:00