mirror of
https://github.com/LukeHagar/LocalAI.git
synced 2025-12-09 20:47:46 +00:00
enable test only on Linux
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
. "github.com/go-skynet/LocalAI/api"
|
. "github.com/go-skynet/LocalAI/api"
|
||||||
"github.com/go-skynet/LocalAI/pkg/model"
|
"github.com/go-skynet/LocalAI/pkg/model"
|
||||||
@@ -83,6 +84,9 @@ var _ = Describe("API test", func() {
|
|||||||
Expect(err.Error()).To(ContainSubstring("error, status code: 500, message: could not load model - all backends returned error: 12 errors occurred:"))
|
Expect(err.Error()).To(ContainSubstring("error, status code: 500, message: could not load model - all backends returned error: 12 errors occurred:"))
|
||||||
})
|
})
|
||||||
It("transcribes audio", func() {
|
It("transcribes audio", func() {
|
||||||
|
if runtime.GOOS != "linux" {
|
||||||
|
Skip("test supported only on linux")
|
||||||
|
}
|
||||||
resp, err := client.CreateTranscription(
|
resp, err := client.CreateTranscription(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
openai.AudioRequest{
|
openai.AudioRequest{
|
||||||
|
|||||||
Reference in New Issue
Block a user