Enha: log level to props

This commit is contained in:
Grail Finder
2025-02-15 11:09:47 +03:00
parent 83babd0271
commit c134479414
7 changed files with 35 additions and 20 deletions

4
llm.go
View File

@@ -16,11 +16,11 @@ type ChunkParser interface {
func initChunkParser() {
chunkParser = LlamaCPPeer{}
if strings.Contains(cfg.CurrentAPI, "v1") {
logger.Info("chosen openai parser")
logger.Debug("chosen /v1/chat parser")
chunkParser = OpenAIer{}
return
}
logger.Info("chosen llamacpp parser")
logger.Debug("chosen llamacpp /completion parser")
}
type LlamaCPPeer struct {