print prompt with OLLAMA_DEBUG=1 (#2245)

This commit is contained in:
Jeffrey Morgan 2024-01-28 15:22:35 -08:00 committed by GitHub
parent e4b9b72f2a
commit f2245c7c77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,6 +253,8 @@ func GenerateHandler(c *gin.Context) {
prompt = rebuild.String() prompt = rebuild.String()
} }
slog.Debug(fmt.Sprintf("prompt: %s", prompt))
ch := make(chan any) ch := make(chan any)
var generated strings.Builder var generated strings.Builder
go func() { go func() {
@ -1125,6 +1127,8 @@ func ChatHandler(c *gin.Context) {
return return
} }
slog.Debug(fmt.Sprintf("prompt: %s", prompt))
ch := make(chan any) ch := make(chan any)
go func() { go func() {