chore: lint

This commit is contained in:
suyao 2026-01-03 16:17:26 +08:00
parent 8525646889
commit d35346f5ad
No known key found for this signature in database

View File

@ -61,12 +61,12 @@ export abstract class BaseStreamAdapter<TOutputEvent> implements IStreamAdapter<
// Note: emitMessageStart is called lazily in transform or finalize
// to allow configuration changes (like setInputTokens) after construction
},
transform: (chunk, _controller) => {
transform: (chunk) => {
// Ensure message_start is emitted before processing chunks
this.emitMessageStart()
this.processChunk(chunk)
},
flush: (_controller) => {
flush: () => {
// Ensure message_start is emitted even for empty streams
this.emitMessageStart()
this.finalize()