Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/api/v1/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from app.core.config import get_settings
from app.core.logging import get_logger
from app.core.security import require_internal_token
from app.schemas.report import (
AiCareerBrandingResponse,
AiCareerHighlightsResponse,
Expand All @@ -32,7 +33,11 @@

logger = get_logger(__name__)

router = APIRouter(prefix="/reports", tags=["reports"])
router = APIRouter(
prefix="/reports",
tags=["reports"],
dependencies=[Depends(require_internal_token)],
)

_LLM_ERRORS = (LLMRateLimitedError, LLMUpstreamUnavailableError, LLMBadRequestError, LLMAuthError)

Expand Down
3 changes: 2 additions & 1 deletion app/api/v1/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from app.core.config import get_settings
from app.core.logging import get_logger
from app.core.security import require_internal_token
from app.schemas.tagging import TaggingRequest, TaggingResponse
from app.services._clients.exceptions import (
LLMAuthError,
Expand All @@ -33,7 +34,7 @@

logger = get_logger(__name__)

router = APIRouter(tags=["tagging"])
router = APIRouter(tags=["tagging"], dependencies=[Depends(require_internal_token)])


def get_llm_client(request: Request) -> LLMClient:
Expand Down
Loading