fix:건강 트렌드 필터에서 연예인/인물 키워드 제외
- 프롬프트에 엄격한 제외 규칙 추가 (연예인/정치인/스포츠선수/드라마 등) - "간접 연결 가능하면 포함" 조건 삭제 (억지 건강 앵글 방지) - 컨트롤러: 필터 결과가 비면 원본 대신 빈 배열 반환 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -46,8 +46,8 @@ public function fetchTrending(): JsonResponse
|
||||
|
||||
$healthKeywords = $this->geminiService->filterHealthTrending($rawKeywords);
|
||||
|
||||
// Gemini 필터링 실패 시 원본 반환
|
||||
return ! empty($healthKeywords) ? $healthKeywords : $rawKeywords;
|
||||
// Gemini 필터링 결과 반환 (빈 배열이면 빈 배열 — 원본 노출 안 함)
|
||||
return $healthKeywords;
|
||||
});
|
||||
|
||||
return response()->json([
|
||||
|
||||
Reference in New Issue
Block a user