server: fix warnings in prompt_test.go (#7710)
This commit is contained in:
parent
b42a596425
commit
8b4b243f5f
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func TestChatPrompt(t *testing.T) {
|
||||||
mllamaModel := Model{Template: tmpl, ProjectorPaths: []string{"vision"}, Config: ConfigV2{ModelFamilies: []string{"mllama"}}}
|
mllamaModel := Model{Template: tmpl, ProjectorPaths: []string{"vision"}, Config: ConfigV2{ModelFamilies: []string{"mllama"}}}
|
||||||
|
|
||||||
createImg := func(width, height int) ([]byte, error) {
|
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
|
var buf bytes.Buffer
|
||||||
|
|
||||||
if err := png.Encode(&buf, img); err != nil {
|
if err := png.Encode(&buf, img); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue