bug fix for url path
parent
1e16e0e3eb
commit
2ac4b75d96
|
|
@ -216,6 +216,23 @@ async def crawling(request_body: CrawlingRequest):
|
||||||
|
|
||||||
# marketing_analysis = MarketingAnalysis(**parsed)
|
# 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(
|
marketing_analysis = MarketingAnalysis(
|
||||||
report=structured_report["report"],
|
report=structured_report["report"],
|
||||||
tags=structured_report["tags"],
|
tags=structured_report["tags"],
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,9 @@ async def kakao_callback(
|
||||||
if forwarded_for:
|
if forwarded_for:
|
||||||
ip_address = forwarded_for.split(",")[0].strip()
|
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(
|
result = await auth_service.kakao_login(
|
||||||
code=code,
|
code=code,
|
||||||
|
|
@ -89,11 +91,13 @@ async def kakao_callback(
|
||||||
|
|
||||||
# 프론트엔드로 토큰과 함께 리다이렉트
|
# 프론트엔드로 토큰과 함께 리다이렉트
|
||||||
redirect_url = (
|
redirect_url = (
|
||||||
f"https://{prj_settings.PROJECT_DOMAIN}"
|
f"{prj_settings.PROJECT_DOMAIN}"
|
||||||
f"?access_token={result.access_token}"
|
f"?access_token={result.access_token}"
|
||||||
f"&refresh_token={result.refresh_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)
|
return RedirectResponse(url=redirect_url, status_code=302)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -139,7 +143,9 @@ async def kakao_verify(
|
||||||
if forwarded_for:
|
if forwarded_for:
|
||||||
ip_address = forwarded_for.split(",")[0].strip()
|
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(
|
result = await auth_service.kakao_login(
|
||||||
code=body.code,
|
code=body.code,
|
||||||
|
|
@ -148,7 +154,9 @@ async def kakao_verify(
|
||||||
ip_address=ip_address,
|
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
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"model": "gpt-5.2",
|
"model": "gpt-5-mini",
|
||||||
"prompt_variables": [
|
"prompt_variables": [
|
||||||
"customer_name",
|
"customer_name",
|
||||||
"region",
|
"region",
|
||||||
|
|
@ -13,8 +13,37 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"report": {
|
"report": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"summary": {
|
||||||
"type": "string"
|
"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": {
|
"selling_points": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
@ -43,12 +72,16 @@
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"contents_advise": {
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"report",
|
"report",
|
||||||
"selling_points",
|
"selling_points",
|
||||||
"tags"
|
"tags",
|
||||||
|
"contents_advise"
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"model": "gpt-5-mini",
|
"model": "gpt-5.2",
|
||||||
"prompt_variables": [
|
"prompt_variables": [
|
||||||
"customer_name",
|
"customer_name",
|
||||||
"region",
|
"region",
|
||||||
|
|
@ -13,37 +13,8 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"report": {
|
"report": {
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"summary": {
|
|
||||||
"type": "string"
|
"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": {
|
"selling_points": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
@ -72,16 +43,12 @@
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"contents_advise": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"report",
|
"report",
|
||||||
"selling_points",
|
"selling_points",
|
||||||
"tags",
|
"tags"
|
||||||
"contents_advise"
|
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
2
uv.lock
2
uv.lock
|
|
@ -913,7 +913,7 @@ requires-dist = [
|
||||||
{ name = "python-multipart", specifier = ">=0.0.21" },
|
{ name = "python-multipart", specifier = ">=0.0.21" },
|
||||||
{ name = "redis", specifier = ">=7.1.0" },
|
{ name = "redis", specifier = ">=7.1.0" },
|
||||||
{ name = "ruff", specifier = ">=0.14.9" },
|
{ 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 = "sqladmin", extras = ["full"], specifier = ">=0.22.0" },
|
||||||
{ name = "sqlalchemy", extras = ["asyncio"], specifier = ">=2.0.45" },
|
{ name = "sqlalchemy", extras = ["asyncio"], specifier = ">=2.0.45" },
|
||||||
{ name = "uuid7", specifier = ">=0.1.0" },
|
{ name = "uuid7", specifier = ">=0.1.0" },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue