x/model: add MapHash example
This commit is contained in:
parent
7f1faf6c12
commit
713e2feacf
@ -224,3 +224,15 @@ func ExampleMerge() {
|
||||
// Output:
|
||||
// registry.ollama.com/mistral:latest+Q4_0
|
||||
}
|
||||
|
||||
func ExampleName_MapHash() {
|
||||
m := map[uint64]bool{}
|
||||
|
||||
m[ParseName("mistral:latest+q4").MapHash()] = true
|
||||
m[ParseName("miSTRal:latest+Q4").MapHash()] = true
|
||||
m[ParseName("mistral:LATest+Q4").MapHash()] = true
|
||||
|
||||
fmt.Println(len(m))
|
||||
// Output:
|
||||
// 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user