mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-28 08:28:51 +00:00
5866fc8ded
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
22 lines
475 B
Go
22 lines
475 B
Go
package oci_test
|
|
|
|
import (
|
|
"os"
|
|
|
|
. "github.com/mudler/LocalAI/pkg/oci" // Update with your module path
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("OCI", func() {
|
|
Context("ollama", func() {
|
|
It("pulls model files", func() {
|
|
f, err := os.CreateTemp("", "ollama")
|
|
Expect(err).NotTo(HaveOccurred())
|
|
defer os.RemoveAll(f.Name())
|
|
err = OllamaFetchModel("gemma:2b", f.Name(), nil)
|
|
Expect(err).NotTo(HaveOccurred())
|
|
})
|
|
})
|
|
})
|