From 8ea1b7afba44b66e3fdfee7e9abd014d8929c608 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 30 Mar 2026 17:16:49 +0300 Subject: [PATCH] chore(llm): always mention note type --- apps/server/src/services/llm/providers/anthropic.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/server/src/services/llm/providers/anthropic.ts b/apps/server/src/services/llm/providers/anthropic.ts index ec6cae2fc3..6bb7e08a97 100644 --- a/apps/server/src/services/llm/providers/anthropic.ts +++ b/apps/server/src/services/llm/providers/anthropic.ts @@ -105,8 +105,7 @@ function buildNoteHint(noteId: string): string | null { return null; } - const typeInfo = note.type !== "text" ? ` (type: ${note.type})` : ""; - return `The user is currently viewing a note titled "${note.title}"${typeInfo}. Use the get_current_note tool to read its content if needed.`; + return `The user is currently viewing a ${note.type} note titled "${note.title}". Use the get_current_note tool to read its content if needed.`; } export class AnthropicProvider implements LlmProvider {