mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-24 13:04:00 +00:00
Golang bindings initial working version(#534)
* WIP * Fix includes * Try to fix linking issues * Refinements * allow to load MPT and llama models too * cleanup, add example, add README
This commit is contained in:
committed by
GitHub
parent
2433902460
commit
3f63cc6b47
27
gpt4all-bindings/golang/gpt4all_test.go
Normal file
27
gpt4all-bindings/golang/gpt4all_test.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package gpt4all_test
|
||||
|
||||
import (
|
||||
. "github.com/nomic-ai/gpt4all/gpt4all-bindings/golang"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
||||
var _ = Describe("LLama binding", func() {
|
||||
Context("Declaration", func() {
|
||||
It("fails with no model", func() {
|
||||
model, err := New("not-existing")
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(model).To(BeNil())
|
||||
})
|
||||
It("fails with no model", func() {
|
||||
model, err := New("not-existing", SetModelType(MPTType))
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(model).To(BeNil())
|
||||
})
|
||||
It("fails with no model", func() {
|
||||
model, err := New("not-existing", SetModelType(LLaMAType))
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(model).To(BeNil())
|
||||
})
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user