Rewrites a chunk stream into the chunk shape a provider style expects.
Chunks to repack.
Target provider style.
The repacked chunks.
for await (const chunk of delta.repack(upstream, { target: "chat-completions" })) { await sink.write(chunk);} Copy
for await (const chunk of delta.repack(upstream, { target: "chat-completions" })) { await sink.write(chunk);}
Rewrites a chunk stream into the chunk shape a provider style expects.