mirror of
https://github.com/mudler/LocalAI.git
synced 2026-01-06 10:39:55 -06:00
* feat(ui): allow to cancel ops Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Improve progress text Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Cancel queued ops, don't show up message cancellation always Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix: fixup displaying of total progress over multiple files Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
23 lines
502 B
Go
23 lines
502 B
Go
package oci_test
|
|
|
|
import (
|
|
"context"
|
|
"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(context.TODO(), "gemma:2b", f.Name(), nil)
|
|
Expect(err).NotTo(HaveOccurred())
|
|
})
|
|
})
|
|
})
|