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
6 changes: 1 addition & 5 deletions app/schemas/captcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ class CaptchaProblemResponse(BaseModel):
description="사용자가 선택할 수 있는 옵션 목록",
example=["고양이", "강아지", "새", "물고기"]
)
correctAnswer: Optional[str] = Field(
None,
description="테스트 환경에서만 제공되는 캡챠 정답. 운영 환경에서는 항상 None입니다.",
example="고양이"
)


class Config:
from_attributes = True
Expand Down
4 changes: 1 addition & 3 deletions app/services/captcha_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ def generateCaptchaProblem(self, apiKey: ApiKey, ipAddress: Optional[str], userA
clientToken=session.clientToken,
imageUrl=fullImageUrl,
prompt=selectedProblem.prompt,
options=option_list,
# 테스트 환경에서만 정답을 포함합니다.
correctAnswer=selectedProblem.answer if settings.ENV == "test" else None
options=option_list
)
# logger.info(f"[디버그] 생성된 문제 : {response_data}")
return response_data
Expand Down
Loading