Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

print prompt with `OLLAMA_DEBUG=1` (#2245)

Jeffrey Morganf2245c7c770f
diff --git a/server/routes.go b/server/routes.go
index e0129793d..b7c3d4963 100644
--- a/server/routes.go
+++ b/server/routes.go
@@ -253,6 +253,8 @@ func GenerateHandler(c *gin.Context) {
prompt = rebuild.String()
}
+ slog.Debug(fmt.Sprintf("prompt: %s", prompt))
+
ch := make(chan any)
var generated strings.Builder
go func() {
@@ -1125,6 +1127,8 @@ func ChatHandler(c *gin.Context) {
return
}
+ slog.Debug(fmt.Sprintf("prompt: %s", prompt))
+
ch := make(chan any)
go func() {