AudioToTextSubtitlesProvider: max file size value of 25 MB hardcoded
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Issue では AudioToTextSubtitlesProvider のサイズチェックが示されていますが、ファイルパスは記載されていません。このプロバイダーを見つけ、まずチェック処理と近くにあるテストを読んでください。クライアント側のサイズ処理を更新して、より大きな入力を送信できるようにし、その後、字幕生成が機能するか、API エラーが明確に報告されるかを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Which version of integration_openai are you using?
5.0.0
Which version of Nextcloud are you using?
35.0.3
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
not relevant
Describe the Bug
When submitting an MP3 file for Subtitle generation that is larger than 25 MB the sytem logs the following:
A TaskProcessing core:audio2text:subtitles task with id failed with the following message: Filesize of input is too large. Max is 25MB"
Of course there may be a limit in OpenAI but as this app is targeting all compatible APIs, I think this control shoudn't be there on the client side. In my opinion it is up to the server to let the client know that the file is oversized.
$fileSize = intval($input['input']->getSize());
// Maximum file size for OpenAI is 25MB. (https://developers.openai.com/api/docs/guides/speech-to-text)
if ($fileSize > 25 * 1000 * 1000) {
throw new UserFacingProcessingException(
'Filesize of input is too large. Max is 25MB',
0,
null,
$this->l->t('The input file size is too large. A maximum of 25MB is allowed.'),
);
}
Expected Behavior
The file is subtitled or the server responds with a proper error message.
To Reproduce
Try to generate subtitles on a file larger than 25MB.
- 主要言語
- PHP
- スター
- 78
- フォーク
- 42
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/integration_openai のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/integration_openai#480 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
nextcloud/integration_openai#471 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Vllm rejecting requests that have empty tools list対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/integration_openai#448 · コメント 3 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Chunked text processing silently drops the end of long texts対応中かも @nonofr91 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
nextcloud/integration_openai#478 ·
メンテナーはふだん 1 日以内に返信
-
Solve 2 transcription problems: Video input and big input対応中かも @danafon が 1 日前に担当しました。 オープンbug enhancement priority: high
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
nextcloud/integration_openai#472 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
nextcloud/integration_openai の issue をすべて見る
似ている issue
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpオープンenhancement feature: settings good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
a11y
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
omeka/plugin-Contribution#84 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
recca0120/vscode-phpunit#620 ·
メンテナーはふだん 1 日以内に返信
-
Validation rule generation for recursive Data objects is unbounded (O(payload depth))対応中かも @irfanm96 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
spatie/laravel-data#1226 ·