mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 02:10:38 +02:00
Docs : fix client to mcp_client in Gemini example
fixed `async with client:` to `async with mcp_client:`
This commit is contained in:
parent
f62a4de547
commit
7ffac70116
1 changed files with 1 additions and 1 deletions
|
|
@ -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!",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue