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
e21579a0
Commit
e21579a0
authored
Nov 03, 2023
by
Jeffrey Morgan
Browse files
Restore system prompt on requests
parent
c44b6194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
server/images.go
server/images.go
+1
-5
No files found.
server/images.go
View file @
e21579a0
...
...
@@ -66,13 +66,9 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
}
vars
.
First
=
len
(
request
.
Context
)
==
0
vars
.
System
=
m
.
System
vars
.
Prompt
=
request
.
Prompt
if
len
(
request
.
Context
)
==
0
{
vars
.
System
=
m
.
System
}
if
request
.
System
!=
""
{
vars
.
System
=
request
.
System
}
...
...
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