Skip to content

Commit 84b1a3e

Browse files
authored
The send_message_async method should call the asynchronous method generate_content_async (#229)
1 parent 4f1ea10 commit 84b1a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/generative_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ async def send_message_async(
534534
if generation_config.get("candidate_count", 1) > 1:
535535
raise ValueError("Can't chat with `candidate_count > 1`")
536536

537-
response = await self.model.generate_content(
537+
response = await self.model.generate_content_async(
538538
contents=history,
539539
generation_config=generation_config,
540540
safety_settings=safety_settings,

0 commit comments

Comments
 (0)