Skip to content

Conversation

@abdullahkady
Copy link
Contributor

Since the decorator assigns a non-async wrapped function, the AsyncClient.chat was no longer considered an async function.
This makes asyncio.iscoroutinefunction(cohere.AsyncClient.chat) # False. This update ensures it returns True

Copy link
Collaborator

@billytrend-cohere billytrend-cohere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice thanks

@abdullahkady abdullahkady merged commit 38106f7 into main Jul 17, 2024
@abdullahkady abdullahkady deleted the fix-async-decorator branch July 17, 2024 14:02
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.

3 participants