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
b9dc8754
Unverified
Commit
b9dc8754
authored
Nov 03, 2023
by
Bruce MacDonald
Committed by
GitHub
Nov 02, 2023
Browse files
remove modelfile context deprecated in v0.0.7 (#974)
parent
06589a3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
server/images.go
server/images.go
+0
-4
No files found.
server/images.go
View file @
b9dc8754
...
@@ -63,15 +63,11 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
...
@@ -63,15 +63,11 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
First
bool
First
bool
System
string
System
string
Prompt
string
Prompt
string
// deprecated: versions <= 0.0.7 used this to omit the system prompt
Context
[]
int
}
}
vars
.
First
=
len
(
request
.
Context
)
==
0
vars
.
First
=
len
(
request
.
Context
)
==
0
vars
.
Prompt
=
request
.
Prompt
vars
.
Prompt
=
request
.
Prompt
vars
.
Context
=
request
.
Context
if
len
(
vars
.
Context
)
==
0
{
if
len
(
vars
.
Context
)
==
0
{
vars
.
System
=
m
.
System
vars
.
System
=
m
.
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