"docs/vscode:/vscode.git/clone" did not exist on "69b285788ec2f05150ae10cac289651b90899c52"
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) {
prompt = rebuild.String()
}
slog.Debug(fmt.Sprintf("prompt: %s", prompt))
slog.Debug("generate handler", "prompt", prompt)
ch := make(chan any)
var generated strings.Builder
......@@ -1145,7 +1145,7 @@ func ChatHandler(c *gin.Context) {
return
}
slog.Debug(fmt.Sprintf("prompt: %s", prompt))
slog.Debug("chat handler", "prompt", prompt)
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