-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add auto_tts plugin #468
Add auto_tts plugin #468
Conversation
Hi @Jipok! Thank you for your contribution, looks cool and will be testing it soon. I agree that the overall architecture is not great 😃 it all started as a side project in my free time and I never expected it to reach this many people. If you feel like it, PRs are open for improvements! |
If you accept, I will make a similar plugin for generating images via dalle. |
Could you explain where the helper object is initialized, and how it is integrated into this system? I'm trying to understand how the helper object connects with the OpenAIHelper class." |
Apologies for the late reply @Jipok, this plugin looks great and a Dalle one would be awesome as well. @rorezez the OpenAI helper object is initialized in the chatgpt-telegram-bot/bot/main.py Line 111 in d6d9ace
|
@Jipok I'm not sure if I'm doing something wrong here?
This is my .env file
Running it on Windows 11 with Python 3.10.11 |
Something happened with |
@Jipok this is the json: Could not find the number in quotes. I tried deleting it as well but it didn't work. |
@makdisse this is weird. Is the problem really in the tts plugin? If you turn it off, is everything ok? |
@Jipok yes, if I turn it off it works fine. It is working now, I'm not sure what it was, I recreated the file manually and it works. |
M.b. bug with plugin and empty history |
This allows the bot to independently send voice messages to the user. Example:
If you think that the name is not suitable, then suggest a better one because I don't really like it either.
I also didn’t like the architecture of the project. For some purpose, the plugin system, interaction with openai, and the telegram bot are strongly separated from each other. This makes it difficult to implement many ideas. At the same time, without bringing at least any benefit to the project.
Thus, I decided that “forwarding” the helper “down” to the plugin system would not make things worse. We already have an isolation violation when forwarding chat_id.