Skip to content

Commit

Permalink
add: patching for send_message_async
Browse files Browse the repository at this point in the history
  • Loading branch information
soumik12345 committed Oct 28, 2024
1 parent c04ca38 commit a607896
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions weave/integrations/google_ai_studio/google_ai_studio_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,12 @@ async def _async_wrapper(*args: Any, **kwargs: Any) -> Any:
"ChatSession.send_message",
gemini_wrapper_sync(name="google.generativeai.ChatSession.send_message"),
),
SymbolPatcher(
lambda: importlib.import_module("google.generativeai.generative_models"),
"ChatSession.send_message_async",
gemini_wrapper_async(
name="google.generativeai.ChatSession.send_message_async"
),
),
]
)

0 comments on commit a607896

Please sign in to comment.