1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 17:29:54 +00:00

better searching

This commit is contained in:
Laura
2025-08-14 03:53:14 +02:00
parent 8a790df2af
commit c740cd293d
14 changed files with 582 additions and 143 deletions

View File

@@ -10,7 +10,7 @@ import (
type Chunk struct {
Type string `json:"type"`
Text string `json:"text"`
Text any `json:"text"`
}
type Stream struct {
@@ -64,6 +64,13 @@ func TextChunk(text string) Chunk {
}
}
func ToolChunk(tool *ToolCall) Chunk {
return Chunk{
Type: "tool",
Text: tool,
}
}
func IDChunk(id string) Chunk {
return Chunk{
Type: "id",