Browse Source

x/model: add some clarity to Fill example about what is showing

Blake Mizerany 1 year ago
parent
commit
fc595d89bf
1 changed files with 2 additions and 4 deletions
  1. 2 4
      x/model/name_test.go

+ 2 - 4
x/model/name_test.go

@@ -314,10 +314,8 @@ func TestFill(t *testing.T) {
 }
 
 func ExampleFill() {
-	r := Fill(
-		ParseName("mistral"),
-		ParseName("registry.ollama.com/library/PLACEHOLDER:latest+Q4_0"),
-	)
+	defaults := ParseName("registry.ollama.com/library/PLACEHOLDER:latest+Q4_0")
+	r := Fill(ParseName("mistral"), defaults)
 	fmt.Println(r)
 
 	// Output: