File tree Expand file tree Collapse file tree
agentops/client/api/versions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88from agentops .client .api .types import AuthTokenResponse
99from agentops .exceptions import ApiServerException
1010from agentops .logging import logger
11+ from termcolor import colored
1112
1213
1314class V3Client (BaseApiClient ):
@@ -47,6 +48,15 @@ def fetch_auth_token(self, api_key: str) -> AuthTokenResponse:
4748 if not token :
4849 raise ApiServerException ("No token in authentication response" )
4950
51+ # Check project premium status
52+ if jr .get ("project_prem_status" ) != "pro" :
53+ logger .info (
54+ colored (
55+ "\x1b [34mYou're on the agentops free plan 📎 - Upgrade at https://app.agentops.ai/settings/billing\x1b [0m" ,
56+ "blue" ,
57+ )
58+ )
59+
5060 return jr
5161 except Exception as e :
5262 logger .error (f"Failed to process authentication response: { str (e )} " )
You can’t perform that action at this time.
0 commit comments