fix: address Obsidian review bot issues
- Move inline styles from TypeScript to CSS for better theme compatibility - Remove "Freewriting" from command names to follow Obsidian conventions - Fix TypeScript type casting by properly typing model as AnthropicModel - Update to latest Claude models including Opus 4.1 and Sonnet 4 Changes: • commands/staggeredPrompts.ts: Replace inline styles with CSS class • main.ts: Rename commands to "Show Staggered Prompts" and "Add Note Prompts" • settings.ts: Remove 'as any' cast and update default model • styles.css: Add .freewriting-prompt-notice class with proper styling • types.ts: Change model field type from string to AnthropicModel 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
5 files changed
+25
-25
No files matched your search
+2
-2
@@ -7,7 +7,7 @@ import { FreewritingPromptsSettings, ANTHROPIC_MODELS } from './types';
|
||||
|
||||
export const DEFAULT_SETTINGS: FreewritingPromptsSettings = {
|
||||
apiKey: '',
|
||||
model: 'claude-3-haiku-20240307',
|
||||
model: 'claude-3-5-haiku-latest' as const,
|
||||
staggeredCount: 10,
|
||||
delaySeconds: 6,
|
||||
noteCount: 3,
|
||||
@@ -194,7 +194,7 @@ export class FreewritingPromptsSettingTab extends PluginSettingTab {
|
||||
|
||||
try {
|
||||
const client = this.plugin.promptGenerator.anthropicClient;
|
||||
const result = await client.testApiKey(this.plugin.settings.model as any);
|
||||
const result = await client.testApiKey(this.plugin.settings.model);
|
||||
|
||||
if (result.success) {
|
||||
// Success - show detailed information
|
||||
|
||||
Reference in new issue
Block a user