style: format stream adapter test
Co-authored-by: Simon Shi <simonsmh@users.noreply.github.com>
This commit is contained in:
co-authored by
Simon Shi
parent
b4f504094e
commit
476a466076
@@ -290,9 +290,7 @@ describe("streamQoder", () => {
|
||||
it("preserves text emitted before and after a tool call", async () => {
|
||||
const sse =
|
||||
sseEnvelope(chunk({ content: "before" })) +
|
||||
sseEnvelope(
|
||||
chunk({ tool_calls: [{ index: 0, id: "call_1", function: { name: "lookup", arguments: "{}" } }] }),
|
||||
) +
|
||||
sseEnvelope(chunk({ tool_calls: [{ index: 0, id: "call_1", function: { name: "lookup", arguments: "{}" } }] })) +
|
||||
sseEnvelope(chunk({ content: " after" })) +
|
||||
sseEnvelope(finishChunk("tool_calls")) +
|
||||
DONE_SSE;
|
||||
|
||||
Reference in New Issue
Block a user