mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 09:19:54 +00:00
better search tools
This commit is contained in:
@@ -37,6 +37,8 @@ func NewStream(w http.ResponseWriter) (*Stream, error) {
|
||||
}
|
||||
|
||||
func (s *Stream) Send(ch Chunk) error {
|
||||
debugIf(ch.Type == "error", "error: %v", ch.Text)
|
||||
|
||||
if err := s.en.Encode(ch); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -60,7 +62,7 @@ func ReasoningChunk(text string) Chunk {
|
||||
func TextChunk(text string) Chunk {
|
||||
return Chunk{
|
||||
Type: "text",
|
||||
Text: text,
|
||||
Text: CleanChunk(text),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user