summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-01-22 09:29:56 +0300
committerGrail Finder <wohilas@gmail.com>2026-01-22 09:29:56 +0300
commit98138728542d0ed529d9d3a389c3531945d971f3 (patch)
tree0ad2e4e7f255632a7c712a7566580f2aec03a02b /bot.go
parenta28e8ef9e250ace5c9624393da308c189c0839f6 (diff)
Chore: bool colors for statusline
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go30
1 files changed, 12 insertions, 18 deletions
diff --git a/bot.go b/bot.go
index 112af07..cd35445 100644
--- a/bot.go
+++ b/bot.go
@@ -35,19 +35,18 @@ var (
logLevel = new(slog.LevelVar)
)
var (
- activeChatName string
- chunkChan = make(chan string, 10)
- openAIToolChan = make(chan string, 10)
- streamDone = make(chan bool, 1)
- chatBody *models.ChatBody
- store storage.FullRepo
- defaultFirstMsg = "Hello! What can I do for you?"
- defaultStarter = []models.RoleMsg{}
- defaultStarterBytes = []byte{}
- interruptResp = false
- ragger *rag.RAG
- chunkParser ChunkParser
- lastToolCall *models.FuncCall
+ activeChatName string
+ chunkChan = make(chan string, 10)
+ openAIToolChan = make(chan string, 10)
+ streamDone = make(chan bool, 1)
+ chatBody *models.ChatBody
+ store storage.FullRepo
+ defaultFirstMsg = "Hello! What can I do for you?"
+ defaultStarter = []models.RoleMsg{}
+ interruptResp = false
+ ragger *rag.RAG
+ chunkParser ChunkParser
+ lastToolCall *models.FuncCall
//nolint:unused // TTS_ENABLED conditionally uses this
orator Orator
asr STT
@@ -1170,11 +1169,6 @@ func init() {
slog.Error("failed to open log file", "error", err, "filename", cfg.LogFile)
return
}
- defaultStarterBytes, err = json.Marshal(defaultStarter)
- if err != nil {
- slog.Error("failed to marshal defaultStarter", "error", err)
- return
- }
// load cards
basicCard.Role = cfg.AssistantRole
// toolCard.Role = cfg.AssistantRole