Skip to content

Commit addea33

Browse files
committed
Update
1 parent 1b22e03 commit addea33

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/agno/agno/models/openai/responses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def get_async_client(self) -> AsyncOpenAI:
154154

155155
def get_request_params(
156156
self,
157-
messages: List[Message],
157+
messages: Optional[List[Message]] = None,
158158
response_format: Optional[Union[Dict, Type[BaseModel]]] = None,
159159
tools: Optional[List[Dict[str, Any]]] = None,
160160
tool_choice: Optional[Union[str, Dict[str, Any]]] = None,
@@ -220,7 +220,7 @@ def get_request_params(
220220
request_params["tool_choice"] = tool_choice
221221

222222
# Handle reasoning tools for o3 and o4-mini models
223-
if self.id.startswith("o3") or self.id.startswith("o4-mini"):
223+
if (self.id.startswith("o3") or self.id.startswith("o4-mini") and messages is not None:
224224
request_params["store"] = True
225225

226226
# Check if the last assistant message has a previous_response_id to continue from

libs/agno/tests/integration/knowledge/test_website_knowledge_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def setup_vector_db():
1919

2020
def test_website_knowledge_base_directory(setup_vector_db):
2121
"""Test loading multiple websites into the knowledge base."""
22-
urls = ["https://docs.agno.com/introduction/agents", "https://docs.agno.com/introduction/playground"]
22+
urls = ["https://docs.agno.com/introduction/agents", "https://docs.agno.com/introduction/multi-agent-systems"]
2323

2424
kb = WebsiteKnowledgeBase(urls=urls, max_links=1, vector_db=setup_vector_db)
2525
kb.load(recreate=True)

0 commit comments

Comments
 (0)