feat: models test and fixes

This commit is contained in:
leonardotrapani
2026-02-02 01:13:33 +01:00
parent 2729882b9d
commit 195f9f5115
34 changed files with 507 additions and 154 deletions
+3 -3
View File
@@ -57,7 +57,7 @@ func TestModel_IsStreaming(t *testing.T) {
}{
{
name: "streaming-only model",
model: Model{ID: "scribe_v2_realtime", SupportsBatch: false, SupportsStreaming: true},
model: Model{ID: "flux-general-en", SupportsBatch: false, SupportsStreaming: true},
expected: true,
},
{
@@ -89,7 +89,7 @@ func TestModel_SupportsBothModes(t *testing.T) {
}{
{
name: "streaming-only model",
model: Model{ID: "scribe_v2_realtime", SupportsBatch: false, SupportsStreaming: true},
model: Model{ID: "flux-general-en", SupportsBatch: false, SupportsStreaming: true},
expected: false,
},
{
@@ -325,7 +325,7 @@ func TestAllTranscriptionModels_HaveDocsURL(t *testing.T) {
"mistral": "https://docs.mistral.ai/capabilities/audio/",
"elevenlabs": "https://elevenlabs.io/speech-to-text",
"deepgram": "https://developers.deepgram.com/docs/language",
"whisper-cpp": "https://github.com/openai/whisper#available-models-and-languages",
"whisper-cpp": "https://github.com/ggml-org/whisper.cpp#models",
}
for _, pName := range providers {