12
12
use Exception ;
13
13
use OCA \OpenAi \AppInfo \Application ;
14
14
use OCA \OpenAi \Service \OpenAiAPIService ;
15
- use OCA \OpenAi \Service \OpenAiSettingsService ;
16
15
use OCP \Files \File ;
17
16
use OCP \IAppConfig ;
18
17
use OCP \IL10N ;
@@ -27,7 +26,6 @@ class AudioToAudioChatProvider implements ISynchronousProvider {
27
26
28
27
public function __construct (
29
28
private OpenAiAPIService $ openAiAPIService ,
30
- private OpenAiSettingsService $ openAiSettingsService ,
31
29
private IL10N $ l ,
32
30
private LoggerInterface $ logger ,
33
31
private IAppConfig $ appConfig ,
@@ -125,11 +123,6 @@ public function getOptionalOutputShape(): array {
125
123
$ this ->l ->t ('Input transcription ' ),
126
124
EShapeType::Text,
127
125
),
128
- 'output_transcript ' => new ShapeDescriptor (
129
- $ this ->l ->t ('Output transcript ' ),
130
- $ this ->l ->t ('Response transcription ' ),
131
- EShapeType::Text,
132
- ),
133
126
];
134
127
}
135
128
@@ -249,7 +242,7 @@ public function process(?string $userId, array $input, callable $reportProgress)
249
242
'input_transcript ' => $ inputTranscription ,
250
243
];
251
244
} catch (\Exception $ e ) {
252
- $ this ->logger ->warning ('OpenAI/LocalAI \'s text to image generation failed with: ' . $ e ->getMessage (), ['exception ' => $ e ]);
245
+ $ this ->logger ->warning ('OpenAI/LocalAI \'s text to speech generation failed with: ' . $ e ->getMessage (), ['exception ' => $ e ]);
253
246
throw new RuntimeException ('OpenAI/LocalAI \'s text to image generation failed with: ' . $ e ->getMessage ());
254
247
}
255
248
}
0 commit comments