Uh oh!
There was an error while loading. Please reload this page.
Audio translation - #601
Conversation
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…s of the audio translation provider Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
5307384 to
a71e365Compare
lukasdotcom
left a comment
There was a problem hiding this comment.
Didn't test this, but looks fine.
Uh oh!
There was an error while loading. Please reload this page.
…pendencies, run cs:fix Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
a71e365 to
8941f14Compare| // $context->registerTaskProcessingTaskType(ImageToTextTranslateTaskType::class); | ||
| // $context->registerTaskProcessingProvider(ImageToTextTranslateProvider::class); | ||
| $context->registerTaskProcessingProvider(AudioToAudioTranslateProvider::class); |
There was a problem hiding this comment.
Should we only register this if all subordinate task types have a provider available? Otherwise getPreferredTaskType throws
There was a problem hiding this comment.
I tried
$availableTaskTypeIds = $this->taskProcessingManager->getAvailableTaskTypeIds();
if (in_array(AudioToText::ID, $availableTaskTypeIds, true)) {
$context->registerTaskProcessingProvider(AudioToAudioTranslateProvider::class);
}but at this point not all the task types are registered, on my setup I only get core:audio2audio:chat and assistant:text2sticker. Not sure if we can really check what's available here.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Uh oh!
There was an error while loading. Please reload this page.
… AudioToAudioTranslateProvider Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
🤖 AI (if applicable)