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
8b4b243f
Unverified
Commit
8b4b243f
authored
Nov 17, 2024
by
Jeffrey Morgan
Committed by
GitHub
Nov 17, 2024
Browse files
server: fix warnings in prompt_test.go (#7710)
parent
b42a5964
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/prompt_test.go
server/prompt_test.go
+1
-1
No files found.
server/prompt_test.go
View file @
8b4b243f
...
...
@@ -32,7 +32,7 @@ func TestChatPrompt(t *testing.T) {
mllamaModel
:=
Model
{
Template
:
tmpl
,
ProjectorPaths
:
[]
string
{
"vision"
},
Config
:
ConfigV2
{
ModelFamilies
:
[]
string
{
"mllama"
}}}
createImg
:=
func
(
width
,
height
int
)
([]
byte
,
error
)
{
img
:=
image
.
NewRGBA
(
image
.
Rect
(
0
,
0
,
5
,
5
))
img
:=
image
.
NewRGBA
(
image
.
Rect
(
0
,
0
,
width
,
height
))
var
buf
bytes
.
Buffer
if
err
:=
png
.
Encode
(
&
buf
,
img
);
err
!=
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