feat: preserve stereo channels and require reviewed speaker roles
This commit is contained in:
@@ -25,7 +25,8 @@ if (!method_exists(Prompt::class, 'citations')) {
|
||||
foreach ($citations as $index => $citation) {
|
||||
$start = $index * 200;
|
||||
$expected = mb_substr($text, $start, 240);
|
||||
$exact = $exact && array_keys($citation) === ['id', 'segment_id', 'text']
|
||||
$exact = $exact && array_keys($citation) === ['id', 'segment_id', 'text', 'start_ms', 'end_ms']
|
||||
&& $citation['start_ms'] === 0 && $citation['end_ms'] === 120000
|
||||
&& $citation['segment_id'] === 's_a' && $citation['text'] === $expected
|
||||
&& mb_strlen($citation['text']) <= 240 && str_contains($text, $citation['text'])
|
||||
&& preg_match('/^c_[a-f0-9]{32}$/D', $citation['id']) && !isset($seen[$citation['id']]);
|
||||
|
||||
Reference in New Issue
Block a user