mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 17:29:54 +00:00
better searching
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user