structured debug prompt

This commit is contained in:
Michael Yang 2024-01-31 16:47:26 -08:00
parent 1ca386aa9e
commit 3d6f48507a

View file

@ -253,7 +253,7 @@ func GenerateHandler(c *gin.Context) {
prompt = rebuild.String() prompt = rebuild.String()
} }
slog.Debug(fmt.Sprintf("prompt: %s", prompt)) slog.Debug("generate handler", "prompt", prompt)
ch := make(chan any) ch := make(chan any)
var generated strings.Builder var generated strings.Builder
@ -1145,7 +1145,7 @@ func ChatHandler(c *gin.Context) {
return return
} }
slog.Debug(fmt.Sprintf("prompt: %s", prompt)) slog.Debug("chat handler", "prompt", prompt)
ch := make(chan any) ch := make(chan any)