bug fix for url path

insta
Dohyun Lim 2026-01-23 18:04:40 +09:00
parent 1e16e0e3eb
commit 2ac4b75d96
13 changed files with 70 additions and 45 deletions

View File

@ -216,6 +216,23 @@ async def crawling(request_body: CrawlingRequest):
# marketing_analysis = MarketingAnalysis(**parsed)
logger.debug(
f"[crawling] structured_report 구조 확인:\n"
f"{'='*60}\n"
f"[report] type: {type(structured_report.get('report'))}\n"
f"{'-'*60}\n"
f"{structured_report.get('report')}\n"
f"{'='*60}\n"
f"[tags] type: {type(structured_report.get('tags'))}\n"
f"{'-'*60}\n"
f"{structured_report.get('tags')}\n"
f"{'='*60}\n"
f"[selling_points] type: {type(structured_report.get('selling_points'))}\n"
f"{'-'*60}\n"
f"{structured_report.get('selling_points')}\n"
f"{'='*60}"
)
marketing_analysis = MarketingAnalysis(
report=structured_report["report"],
tags=structured_report["tags"],

View File

@ -78,7 +78,9 @@ async def kakao_callback(
if forwarded_for:
ip_address = forwarded_for.split(",")[0].strip()
logger.debug(f"[ROUTER] 클라이언트 정보 - ip: {ip_address}, user_agent: {user_agent}")
logger.debug(
f"[ROUTER] 클라이언트 정보 - ip: {ip_address}, user_agent: {user_agent}"
)
result = await auth_service.kakao_login(
code=code,
@ -89,11 +91,13 @@ async def kakao_callback(
# 프론트엔드로 토큰과 함께 리다이렉트
redirect_url = (
f"https://{prj_settings.PROJECT_DOMAIN}"
f"{prj_settings.PROJECT_DOMAIN}"
f"?access_token={result.access_token}"
f"&refresh_token={result.refresh_token}"
)
logger.info(f"[ROUTER] 카카오 콜백 완료, 프론트엔드로 리다이렉트 - redirect_url: {redirect_url[:50]}...")
logger.info(
f"[ROUTER] 카카오 콜백 완료, 프론트엔드로 리다이렉트 - redirect_url: {redirect_url[:50]}..."
)
return RedirectResponse(url=redirect_url, status_code=302)
@ -139,7 +143,9 @@ async def kakao_verify(
if forwarded_for:
ip_address = forwarded_for.split(",")[0].strip()
logger.debug(f"[ROUTER] 클라이언트 정보 - ip: {ip_address}, user_agent: {user_agent}")
logger.debug(
f"[ROUTER] 클라이언트 정보 - ip: {ip_address}, user_agent: {user_agent}"
)
result = await auth_service.kakao_login(
code=body.code,
@ -148,7 +154,9 @@ async def kakao_verify(
ip_address=ip_address,
)
logger.info(f"[ROUTER] 카카오 인가 코드 검증 완료 - user_id: {result.user.id}, is_new_user: {result.user.is_new_user}")
logger.info(
f"[ROUTER] 카카오 인가 코드 검증 완료 - user_id: {result.user.id}, is_new_user: {result.user.is_new_user}"
)
return result

View File

@ -1,5 +1,5 @@
{
"model": "gpt-5.2",
"model": "gpt-5-mini",
"prompt_variables": [
"customer_name",
"region",
@ -13,7 +13,36 @@
"type": "object",
"properties": {
"report": {
"type": "string"
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"properties": {
"detail_title": {
"type": "string"
},
"detail_description": {
"type": "string"
}
},
"required": [
"detail_title",
"detail_description"
],
"additionalProperties": false
}
}
},
"required": [
"summary",
"details"
],
"additionalProperties": false
},
"selling_points": {
"type": "array",
@ -43,12 +72,16 @@
"items": {
"type": "string"
}
},
"contents_advise": {
"type": "string"
}
},
"required": [
"report",
"selling_points",
"tags"
"tags",
"contents_advise"
],
"additionalProperties": false
},

View File

@ -1,5 +1,5 @@
{
"model": "gpt-5-mini",
"model": "gpt-5.2",
"prompt_variables": [
"customer_name",
"region",
@ -13,36 +13,7 @@
"type": "object",
"properties": {
"report": {
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"properties": {
"detail_title": {
"type": "string"
},
"detail_description": {
"type": "string"
}
},
"required": [
"detail_title",
"detail_description"
],
"additionalProperties": false
}
}
},
"required": [
"summary",
"details"
],
"additionalProperties": false
"type": "string"
},
"selling_points": {
"type": "array",
@ -72,16 +43,12 @@
"items": {
"type": "string"
}
},
"contents_advise": {
"type": "string"
}
},
"required": [
"report",
"selling_points",
"tags",
"contents_advise"
"tags"
],
"additionalProperties": false
},

View File

@ -913,7 +913,7 @@ requires-dist = [
{ name = "python-multipart", specifier = ">=0.0.21" },
{ name = "redis", specifier = ">=7.1.0" },
{ name = "ruff", specifier = ">=0.14.9" },
{ name = "scalar-fastapi", specifier = "==1.6.1" },
{ name = "scalar-fastapi", specifier = ">=1.6.1" },
{ name = "sqladmin", extras = ["full"], specifier = ">=0.22.0" },
{ name = "sqlalchemy", extras = ["asyncio"], specifier = ">=2.0.45" },
{ name = "uuid7", specifier = ">=0.1.0" },