mirror of
https://github.com/ollama/ollama.git
synced 2025-04-02 09:00:28 +02:00
print prompt with OLLAMA_DEBUG=1
(#2245)
This commit is contained in:
parent
e4b9b72f2a
commit
f2245c7c77
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user