mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 00:49:14 +08:00
chore: lint
This commit is contained in:
parent
8525646889
commit
d35346f5ad
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user