Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

tests(mock_req): use agentops.Client() configuration `endpoint` (#664)

teocns40c24bf01d44
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
index 90414a9c..30f70cc5 100644
--- a/tests/unit/conftest.py
+++ b/tests/unit/conftest.py
@@ -46,7 +46,7 @@ def api_key() -> str:
@pytest.fixture(scope="session")
def base_url() -> str:
"""Base API URL"""
- return "https://api.agentops.ai"
+ return agentops.Client()._config.endpoint
@pytest.fixture(autouse=True)