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
5dc0cff4
Commit
5dc0cff4
authored
Oct 18, 2023
by
Arne Müller
Browse files
fix whitespace removal
parent
08b0e04f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
llm/llama.go
llm/llama.go
+1
-1
No files found.
llm/llama.go
View file @
5dc0cff4
...
...
@@ -666,7 +666,7 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) {
}
// decoded content contains a leading whitespace
decoded
.
Content
,
_
=
strings
.
CutPrefix
(
decoded
.
Content
,
""
)
decoded
.
Content
,
_
=
strings
.
CutPrefix
(
decoded
.
Content
,
"
"
)
return
decoded
.
Content
,
nil
}
...
...
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