Skip to content

Commit 104f672

Browse files
committed
fix test + update tapes
1 parent 01ccbf6 commit 104f672

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

packages/inference/test/HfInference.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,13 +862,12 @@ describe.concurrent(
862862
const res = await client.automaticSpeechRecognition({
863863
model: "openai/whisper-large-v3",
864864
provider: "fal-ai",
865-
data: new Blob([readTestFile("sample2.wav")], { type: "audio/vnd.wav" }),
865+
data: new Blob([readTestFile("sample2.wav")], { type: "audio/x-wav" }),
866866
});
867867
expect(res).toMatchObject({
868-
text: "HE HAS GRAVE DOUBTS WHETHER SIR FREDERICK LEIGHTON'S WORK IS REALLY GREEK AFTER ALL AND CAN DISCOVER IN IT BUT LITTLE OF ROCKY ITHACA",
868+
text: "He has grave doubts whether Sir Frederick Leighton's work is really Greek after all, and can discover in it but little of rocky Ithaca.",
869869
});
870870
});
871871
});
872872
},
873-
TIMEOUT
874873
);

packages/inference/test/tapes.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,5 +2354,24 @@
23542354
"vary": "Accept-Encoding"
23552355
}
23562356
}
2357+
},
2358+
"a540c67dea61eb4a90fedc20699d4863b04fd61dca73756d1f31a09793307689": {
2359+
"url": "https://fal.run/fal-ai/wizper",
2360+
"init": {
2361+
"headers": {
2362+
"Content-Type": "application/json"
2363+
},
2364+
"method": "POST"
2365+
},
2366+
"response": {
2367+
"body": "{\"text\":\"He has grave doubts whether Sir Frederick Leighton's work is really Greek after all, and can discover in it but little of rocky Ithaca.\",\"chunks\":[{\"timestamp\":[0.36,9.62],\"text\":\"He has grave doubts whether Sir Frederick Leighton's work is really Greek after all, and can discover in it but little of rocky Ithaca.\"}]}",
2368+
"status": 200,
2369+
"statusText": "OK",
2370+
"headers": {
2371+
"connection": "keep-alive",
2372+
"content-type": "application/json",
2373+
"strict-transport-security": "max-age=31536000; includeSubDomains"
2374+
}
2375+
}
23572376
}
23582377
}

0 commit comments

Comments
 (0)