Feat: add switch between sys prompts

This commit is contained in:
Grail Finder
2024-11-23 18:34:02 +03:00
parent 692e0ada4b
commit 6625a8103b
4 changed files with 36 additions and 26 deletions

2
bot.go
View File

@@ -23,13 +23,13 @@ var httpClient = http.Client{
var (
logger *slog.Logger
APIURL = "http://localhost:8080/v1/chat/completions"
userRole = "user"
assistantRole = "assistant"
toolRole = "tool"
assistantIcon = "<🤖>: "
userIcon = "<user>: "
// TODO: pass as an cli arg or have config
APIURL = "http://localhost:8080/v1/chat/completions"
logFileName = "log.txt"
showSystemMsgs bool
chunkLimit = 1000