style: Pint 포맷팅 적용
This commit is contained in:
@@ -31,7 +31,7 @@ public function filterHealthTrending(array $trendingKeywords): array
|
||||
$keywordList = collect($trendingKeywords)->map(function ($item, $i) {
|
||||
$news = ! empty($item['news_title']) ? " (뉴스: {$item['news_title']})" : '';
|
||||
|
||||
return ($i + 1) . ". {$item['keyword']}{$news}";
|
||||
return ($i + 1).". {$item['keyword']}{$news}";
|
||||
})->implode("\n");
|
||||
|
||||
$prompt = <<<PROMPT
|
||||
@@ -122,7 +122,7 @@ public function reframeAsHealthTrending(array $trendingKeywords): array
|
||||
$keywordList = collect($trendingKeywords)->take(10)->map(function ($item, $i) {
|
||||
$news = ! empty($item['news_title']) ? " (뉴스: {$item['news_title']})" : '';
|
||||
|
||||
return ($i + 1) . ". {$item['keyword']}{$news}";
|
||||
return ($i + 1).". {$item['keyword']}{$news}";
|
||||
})->implode("\n");
|
||||
|
||||
$prompt = <<<PROMPT
|
||||
@@ -415,7 +415,7 @@ private function callGemini(string $prompt): ?string
|
||||
/**
|
||||
* Gemini API 호출 (멀티모달 지원 - 텍스트 + 이미지)
|
||||
*
|
||||
* @param array $parts [['text' => '...'], ['inlineData' => ['mimeType' => '...', 'data' => '...']]]
|
||||
* @param array $parts [['text' => '...'], ['inlineData' => ['mimeType' => '...', 'data' => '...']]]
|
||||
*/
|
||||
public function callGeminiWithParts(array $parts, float $temperature = 0.9, int $maxTokens = 4096): ?string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user