Enhances code documentation and structure for plugin #3
@@ -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'>];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user