-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle responses longer than telegram message limit #44
Comments
Hi @AlexHTW, is this a Telegram or a ChatGPT limitation? I don't have much time, but I added to the README in case someone wants to give it a try! |
Hey, it's a Telegram limitation. We would just need to split the response into multiple messages if response is larger than the Telegram limit. Thanks for adding it, maybe I can figure it out and contribute. |
Hey @n3d1117, thanks. I tested with 50-60 minute podcast mp3s and couldn't get a transcript, unfortunately also no log message. Maybe it's an API limit or something about the files itself. |
I noticed I don't receive a "new transcribe request received" info log when sending the bot podcast mp3s. |
@AlexHTW you're right. Bots can download files of up to 20MB in size (source) and the .mp3 you linked is 38,1MB. There was actually an exception raised in the BTW I tried compressing your mp3 using an online tool, the download then worked but I got:
suggesting there's a limit (~26MB?) for Whisper requests too. I think you're better off splitting your audio into multiple files |
Thanks for the investigation! I was not aware of those limits. I looked up the limitations in the Whisper docs, you are correct:
The user feedback for files too large is important, thanks. I would suggest also telling the user the actual limit of 20MB when the file is too large. |
Done! Merging now, thanks for testing |
Hey, it looks like the streaming update broke the handling for long messages in chat responses.
example prompt: list all presidents of the United States with a short biography and list of their major achievements. |
Good catch @AlexHTW, I got a fix and i'll push it tomorrow |
Awesome. Tested it, works great :) Thank you |
Hey, I encountered the telegram error Message_too_long when transcribing a 6 minute audio file.
Any chance to split responses longer than the limit (I think 4096 characters) into multiple messages?
Might also apply to chatGPT responses although I have not managed to get such a long response yet but I think theoretically it could be possible (4096 tokens > 4096 characters).
Thank you and the other contributors for all your hard work!
The text was updated successfully, but these errors were encountered: