Skip to content

Commit 67b7bc3

Browse files
committed
fix: threshold is float, not int
1 parent 9ee14d7 commit 67b7bc3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Responses/Realtime/Session/TurnDetection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use OpenAI\Testing\Responses\Concerns\Fakeable;
1010

1111
/**
12-
* @phpstan-type TurnDetectionType array{prefix_padding_ms: int, silence_duration_ms: int, threshold: int, type: 'server_vad'}
12+
* @phpstan-type TurnDetectionType array{prefix_padding_ms: int, silence_duration_ms: int, threshold: float, type: 'server_vad'}
1313
*
1414
* @implements ResponseContract<TurnDetectionType>
1515
*/
@@ -28,7 +28,7 @@ final class TurnDetection implements ResponseContract
2828
private function __construct(
2929
public readonly int $prefixPaddingMs,
3030
public readonly int $silenceDurationMs,
31-
public readonly int $threshold,
31+
public readonly float $threshold,
3232
public readonly string $type,
3333
) {}
3434

0 commit comments

Comments
 (0)