diff --git a/api/anthropicClient.ts b/api/anthropicClient.ts index bbf0ad6..94fca0f 100644 --- a/api/anthropicClient.ts +++ b/api/anthropicClient.ts @@ -67,7 +67,7 @@ export class AnthropicClient { if (commentaryStyle === 'custom' && customCommentaryPrompt) { commentaryPrompt = customCommentaryPrompt; } else if (commentaryStyle === 'custom') { - throw new Error('Custom commentary prompt is required when using custom style'); + throw new Error('Custom commentary style requires a custom prompt. Please provide customCommentaryPrompt.'); } else { commentaryPrompt = COMMENTARY_PRESETS[commentaryStyle as Exclude]; }