Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
f2245c7c
Unverified
Commit
f2245c7c
authored
Jan 28, 2024
by
Jeffrey Morgan
Committed by
GitHub
Jan 28, 2024
Browse files
print prompt with `OLLAMA_DEBUG=1` (#2245)
parent
e4b9b72f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
server/routes.go
server/routes.go
+4
-0
No files found.
server/routes.go
View file @
f2245c7c
...
@@ -253,6 +253,8 @@ func GenerateHandler(c *gin.Context) {
...
@@ -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) {
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment