Explorar o código

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

Blake Mizerany hai 1 ano
pai
achega
fc595d89bf
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  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: