anderson-ufrj
commited on
Commit
·
82f9400
1
Parent(s):
035ac5e
fix(imports): correct RateLimitTier import and add temporary tier function
Browse files- Import RateLimitTier from infrastructure.rate_limiter where it's defined
- Add temporary get_rate_limit_tier function returning BASIC tier
- Remove non-existent import from rate_limiting middleware
- src/api/routes/agents.py +6 -1
src/api/routes/agents.py
CHANGED
|
@@ -13,7 +13,12 @@ from pydantic import BaseModel, Field
|
|
| 13 |
from src.core import get_logger
|
| 14 |
from src.api.middleware.authentication import get_current_user
|
| 15 |
from src.api.auth import User
|
| 16 |
-
from src.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
from src.agents import ZumbiAgent, AnitaAgent, TiradentesAgent, BonifacioAgent, AgentContext
|
| 18 |
from src.infrastructure.observability.metrics import track_time, count_calls
|
| 19 |
|
|
|
|
| 13 |
from src.core import get_logger
|
| 14 |
from src.api.middleware.authentication import get_current_user
|
| 15 |
from src.api.auth import User
|
| 16 |
+
from src.infrastructure.rate_limiter import RateLimitTier
|
| 17 |
+
|
| 18 |
+
# Temporary function until proper rate limit tier detection is implemented
|
| 19 |
+
async def get_rate_limit_tier() -> RateLimitTier:
|
| 20 |
+
"""Get rate limit tier for current user."""
|
| 21 |
+
return RateLimitTier.BASIC
|
| 22 |
from src.agents import ZumbiAgent, AnitaAgent, TiradentesAgent, BonifacioAgent, AgentContext
|
| 23 |
from src.infrastructure.observability.metrics import track_time, count_calls
|
| 24 |
|