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 () => {
|
it("preserves text emitted before and after a tool call", async () => {
|
||||||
const sse =
|
const sse =
|
||||||
sseEnvelope(chunk({ content: "before" })) +
|
sseEnvelope(chunk({ content: "before" })) +
|
||||||
sseEnvelope(
|
sseEnvelope(chunk({ tool_calls: [{ index: 0, id: "call_1", function: { name: "lookup", arguments: "{}" } }] })) +
|
||||||
chunk({ tool_calls: [{ index: 0, id: "call_1", function: { name: "lookup", arguments: "{}" } }] }),
|
|
||||||
) +
|
|
||||||
sseEnvelope(chunk({ content: " after" })) +
|
sseEnvelope(chunk({ content: " after" })) +
|
||||||
sseEnvelope(finishChunk("tool_calls")) +
|
sseEnvelope(finishChunk("tool_calls")) +
|
||||||
DONE_SSE;
|
DONE_SSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user