test(sdk): terminate the HTTP stream fixture explicitly
Some checks are pending
Cost map pins recheck / rerun-cost-map-guard (push) Waiting to run
LiteLLM Rust DB / db-queries (push) Waiting to run
LiteLLM Rust / rust-lint (push) Waiting to run
LiteLLM Rust / rust-test (push) Waiting to run
LiteLLM Rust / rust-wheel (push) Waiting to run

This commit is contained in:
Tin 2026-10-31 12:45:43 -07:00
parent deb0ceee99
commit 5a32061c71

View file

@ -69,7 +69,11 @@ def enqueue(body: object, status: int = 200) -> None:
def enqueue_stream() -> None:
chunk: Final = {**CHAT, "object": "chat.completion.chunk", "choices": [{"index": 0, "delta": {"content": "pong"}}]}
chunk: Final = {
**CHAT,
"object": "chat.completion.chunk",
"choices": [{"index": 0, "delta": {"content": "pong"}, "finish_reason": "stop"}],
}
RESPONSES.put((200, f"data: {json.dumps(chunk)}\n\ndata: [DONE]\n\n".encode()))