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

Bug: Await expression #41

Open
rockydares opened this issue Mar 16, 2024 · 2 comments
Open

Bug: Await expression #41

rockydares opened this issue Mar 16, 2024 · 2 comments

Comments

@rockydares
Copy link

in send_message_async
    response = await self.model.generate_content(
TypeError: object GenerateContentResponse can't be used in 'await' expression
@rabilrbl
Copy link
Owner

Are you using await in a synchronous statement?

@rockydares
Copy link
Author

Sorry for the late reply. No, I've not changed anything. I just copied this code into my Ubuntu server and set the env then just ran python3 main.py and in the message box of telegram bot, it just shows 'generating' but does not generate anything and thhe cmd shows this error.

@rabilrbl rabilrbl changed the title This error Bug: Await expression Mar 22, 2024
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

No branches or pull requests

2 participants