Skip to content
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_dalle plugin #505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add auto_dalle plugin #505

wants to merge 1 commit into from

Conversation

Jipok
Copy link

@Jipok Jipok commented Dec 17, 2023

I had to do a couple of quick hacks to make this functionality possible. I removed the helper forwarding and now forward the telegram bot, update, and chat_id to the plugins. Thanks to this, I rewrote auto_tts and now call the existing code, which takes into account the money spent and shows the work indicator in the telegram.

20231218_020421
Need testing.

@Jipok Jipok changed the title Auto dalle Add auto_dalle plugin Dec 17, 2023
@Jipok
Copy link
Author

Jipok commented Dec 18, 2023

The direct_result mechanics are somewhat annoying. It’s bad that the chatbot doesn’t see what prompt it used for dalle. And the chat bot cannot perform several actions at the same time: for example, send a picture and a voice message, or a text message. Or several pictures/voice messages.
UPD: Well, it seems that switching to a new version of calling functions can solve this problem: https://platform.openai.com/docs/guides/function-calling/parallel-function-calling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant