Enhances code documentation and structure for plugin #3

Merged
AlexKucera merged 20 commits from docstrings into master 2025-10-25 10:50:22 +02:00
Showing only changes of commit 5e77136370 - Show all commits
+1 -1
View File
@@ -67,7 +67,7 @@ export class AnthropicClient {
if (commentaryStyle === 'custom' && customCommentaryPrompt) { if (commentaryStyle === 'custom' && customCommentaryPrompt) {
commentaryPrompt = customCommentaryPrompt; commentaryPrompt = customCommentaryPrompt;
} else if (commentaryStyle === 'custom') { } 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 { } else {
commentaryPrompt = COMMENTARY_PRESETS[commentaryStyle as Exclude<CommentaryStyle, 'custom'>]; commentaryPrompt = COMMENTARY_PRESETS[commentaryStyle as Exclude<CommentaryStyle, 'custom'>];
} }