Merge pull request #734 from yrangana/main

Docs : fix client to mcp_client in Gemini example
This commit is contained in:
Jeremiah Lowin 2025-06-06 07:46:54 -04:00 committed by GitHub
commit 1d80a50b72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,7 +67,7 @@ mcp_client = Client("server.py")
gemini_client = genai.Client()
async def main():
async with client:
async with mcp_client:
response = await gemini_client.aio.models.generate_content(
model="gemini-2.0-flash",
contents="Roll 3 dice!",