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
orangecat
ollama
Commits
b9dc8754
"vscode:/vscode.git/clone" did not exist on "cb10ae762af50891f6cfe48518a2323872860e6f"
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
Show 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) {
First
bool
System
string
Prompt
string
// deprecated: versions <= 0.0.7 used this to omit the system prompt
Context
[]
int
}
vars
.
First
=
len
(
request
.
Context
)
==
0
vars
.
Prompt
=
request
.
Prompt
vars
.
Context
=
request
.
Context
if
len
(
vars
.
Context
)
==
0
{
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