Skip to content

Commit 619a743

Browse files
committed
fix(chat): avoid localhost URLs in generated markdown links
1 parent 54a5da1 commit 619a743

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/site/src/pages/api/chat.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export const POST: APIRoute = async ({ request }) => {
312312
"- ALWAYS use the `search_content` tool when asked to find, recommend, or query podcasts, posts, or articles on any topic, technology, or question (e.g. 'Sanity', 'Firebase', 'Next.js', 'AI'). It performs hybrid semantic and keyword search across all episodes, posts, and transcripts.\n" +
313313
"- Use `groq_query` for precise lookups when searching for specific author profiles (e.g. *[_type == 'author' && title match '*Alex*']).\n" +
314314
"- CRITICAL: ALWAYS execute tools by invoking them via function calls. NEVER output raw JSON or code blocks in your text describing tool calls instead of executing them.\n" +
315-
"- Once you receive results from your tool calls, synthesize them into an engaging, helpful response. List the relevant episode or article titles, brief descriptions, and their links (/podcast/<slug> or /post/<slug>).",
315+
"- Once you receive results from your tool calls, synthesize them into an engaging, helpful response. List the relevant episode or article titles, brief descriptions, and markdown links using relative paths (e.g. [Title](/podcast/slug) or [Title](/post/slug)). Never use localhost or absolute domain URLs.",
316316
messages: coreMessages,
317317
tools,
318318
stopWhen: isStepCount(5),

0 commit comments

Comments
 (0)