Skip to content

Commit 6a48831

Browse files
committed
return remote audio expiration date
Signed-off-by: Julien Veyssier <[email protected]>
1 parent 688d951 commit 6a48831

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/TaskProcessing/AudioToAudioChatProvider.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ public function getOptionalOutputShape(): array {
133133
$this->l->t('The ID of the audio response returned by the remote service'),
134134
EShapeType::Text
135135
),
136+
'audio_expires_at' => new ShapeDescriptor(
137+
$this->l->t('Remote audio expiration date'),
138+
$this->l->t('The remote audio response stays available in the service until this date'),
139+
EShapeType::Number
140+
),
136141
];
137142
}
138143

@@ -241,6 +246,9 @@ private function oneStep(
241246
if (isset($message['audio']['id'])) {
242247
$result['audio_id'] = $message['audio']['id'];
243248
}
249+
if (isset($message['audio']['expires_at'])) {
250+
$result['audio_expires_at'] = $message['audio']['expires_at'];
251+
}
244252
}
245253
$result['output'] = $output;
246254
$result['output_transcript'] = $textResponse;

0 commit comments

Comments
 (0)