fix: simplify Perplexity prompt — short system + direct user query

Long system prompt caused sonar-pro to return empty results.
Reverted to sonar model with short, proven prompt pattern that
matches the user's successful manual test.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 4.6 committed 2026-04-04 01:32:54 +09:00
1 parent e64d168d34
commit ac2da7a4ac
2 files changed
+5 -81

No files matched your search

@@ -294,7 +294,7 @@ Deno.serve(async (req) => {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: `Bearer ${PERPLEXITY_API_KEY}` },
body: JSON.stringify({
model: "sonar-pro",
model: "sonar",
messages: [
{ role: "system", content: RESEARCH_SYSTEM_PROMPT },
{ role: "user", content: buildResearchUserPrompt(resolvedName, url) },