Skip to content

Commit 5895547

Browse files
committed
Update
1 parent 479b3fc commit 5895547

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

cookbook/models/google/gemini/async_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
agent = Agent(
77
model=Gemini(
8-
id="gemini-2.0-flash-exp",
8+
id="gemini-2.0-flash-001",
99
instructions=["You are a basic agent that writes short stories."],
1010
),
1111
markdown=True,

cookbook/models/google/gemini/async_basic_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from agno.agent import Agent, RunResponse # noqa
55
from agno.models.google import Gemini
66

7-
agent = Agent(model=Gemini(id="gemini-2.0-flash-exp"), markdown=True)
7+
agent = Agent(model=Gemini(id="gemini-2.0-flash-001"), markdown=True)
88

99
# Get the response in a variable
1010
# run_response: Iterator[RunResponse] = agent.run("Share a 2 sentence horror story", stream=True)

cookbook/models/google/gemini/async_tool_use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from agno.tools.duckduckgo import DuckDuckGoTools
1010

1111
agent = Agent(
12-
model=Gemini(id="gemini-2.0-flash-exp"),
12+
model=Gemini(id="gemini-2.0-flash-001"),
1313
tools=[DuckDuckGoTools()],
1414
show_tool_calls=True,
1515
markdown=True,

cookbook/models/google/gemini/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from agno.agent import Agent, RunResponse # noqa
22
from agno.models.google import Gemini
33

4-
agent = Agent(model=Gemini(id="gemini-2.0-flash-exp"), markdown=True)
4+
agent = Agent(model=Gemini(id="gemini-2.0-flash-001"), markdown=True)
55

66
# Get the response in a variable
77
# run: RunResponse = agent.run("Share a 2 sentence horror story")

cookbook/models/google/gemini/basic_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from agno.agent import Agent, RunResponse # noqa
33
from agno.models.google import Gemini
44

5-
agent = Agent(model=Gemini(id="gemini-2.0-flash-exp"), markdown=True)
5+
agent = Agent(model=Gemini(id="gemini-2.0-flash-001"), markdown=True)
66

77
# Get the response in a variable
88
# run_response: Iterator[RunResponse] = agent.run("Share a 2 sentence horror story", stream=True)

cookbook/models/google/gemini/knowledge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
knowledge_base.load(recreate=True) # Comment out after first run
2020

2121
agent = Agent(
22-
model=Gemini(id="gemini-2.0-flash-exp"),
22+
model=Gemini(id="gemini-2.0-flash-001"),
2323
knowledge=knowledge_base,
2424
show_tool_calls=True,
2525
)

cookbook/models/google/gemini/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
99

1010
agent = Agent(
11-
model=Gemini(id="gemini-2.0-flash-exp"),
11+
model=Gemini(id="gemini-2.0-flash-001"),
1212
storage=PostgresStorage(table_name="agent_sessions", db_url=db_url),
1313
tools=[DuckDuckGoTools()],
1414
add_history_to_messages=True,

cookbook/models/google/gemini/storage_and_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
knowledge_base.load(recreate=True) # Comment out after first run
1919

2020
agent = Agent(
21-
model=Gemini(id="gemini-2.0-flash-exp"),
21+
model=Gemini(id="gemini-2.0-flash-001"),
2222
tools=[DuckDuckGoTools()],
2323
knowledge=knowledge_base,
2424
storage=PostgresStorage(table_name="agent_sessions", db_url=db_url),

cookbook/models/google/gemini/structured_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MovieScript(BaseModel):
2626

2727

2828
structured_output_agent = Agent(
29-
model=Gemini(id="gemini-2.0-flash-exp"),
29+
model=Gemini(id="gemini-2.0-flash-001"),
3030
description="You help people write movie scripts.",
3131
response_model=MovieScript,
3232
)

cookbook/models/google/gemini/tool_use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from agno.tools.duckduckgo import DuckDuckGoTools
66

77
agent = Agent(
8-
model=Gemini(id="gemini-2.0-flash-exp"),
8+
model=Gemini(id="gemini-2.0-flash-001"),
99
tools=[DuckDuckGoTools()],
1010
show_tool_calls=True,
1111
markdown=True,

0 commit comments

Comments
 (0)