Unverified Commit 8b4b243f authored by Jeffrey Morgan's avatar Jeffrey Morgan Committed by GitHub
Browse files

server: fix warnings in prompt_test.go (#7710)

parent b42a5964
...@@ -32,7 +32,7 @@ func TestChatPrompt(t *testing.T) { ...@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment