Files
example-eino/steps/trans/internal/handler.go
T
zhaoyupeng.elqbandTRAE CLI ee8afb10db feat: add streaming text Chain example and simplify ASR flow
Add character-by-character fake input, event collection, request logging,
and a model pre-handler to the steps/trans example.

Split the ASR Chain into readable node functions, strip transcript markers,
configure the local ASR service, and remove the ASR example test files.

Co-authored-by: TRAE CLI <traecli@bytedance.com>
2026-11-18 21:26:29 +08:00

15 lines
257 B
Go

package internal
import "fmt"
func EventHandler(data StreamData) {
switch data.Type {
case EventTypeFinal:
fmt.Printf("最终请求文本> %s\n", data.Data)
case EventTypeChunk:
fmt.Printf("流式输入> %s\n", data.Data)
case EventTypeEnd:
}
}