1
0
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:
Laura
2025-08-14 17:08:45 +02:00
parent 5d44980510
commit 0b51ee9dad
17 changed files with 335 additions and 102 deletions

View File

@@ -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),
}
}