Use vLLM audio URL payloads
This commit is contained in:
@@ -58,6 +58,14 @@ func TestNewWithOptionsBuildsComparisonProviders(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestAudioDataURLUsesVLLMAudioURLFormat(t *testing.T) {
|
||||
got := audioDataURL([]byte("abc"), "call.wav")
|
||||
want := "data:audio/wav;base64,YWJj"
|
||||
if got != want {
|
||||
t.Fatalf("audio data url = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func near(got, want float64) bool {
|
||||
return math.Abs(got-want) < 0.000001
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user