Unverified Commit fe3cbd01 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #2298 from ollama/mxyng/debug-prompt

structured debug prompt
parents 1ca386aa 3d6f4850
...@@ -253,7 +253,7 @@ func GenerateHandler(c *gin.Context) { ...@@ -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) { ...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment