mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 06:53:43 +00:00
feat(defaults): change default promptLanguage from zh to auto
New installs default to auto-detect language from the document rather than hardcoding Chinese output. Matches the uiLanguage default of auto. https://claude.ai/code/session_012cK5rUGQvqkuxUZ59x7dLn
This commit is contained in:
parent
06a416569a
commit
12906bda7c
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ export const DEFAULT_SETTINGS: PluginSettings = {
|
|||
apiMaxTokens: 4096,
|
||||
maxDocChars: MAX_DOC_CHARS,
|
||||
maxCacheEntries: DEFAULT_MAX_CACHE_ENTRIES,
|
||||
promptLanguage: 'zh',
|
||||
promptLanguage: 'auto',
|
||||
minCards: 5,
|
||||
maxCards: 15,
|
||||
customSystemPrompt: '',
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ const { assert, requireBundledModule, cleanup } = require('./direct-test-setup')
|
|||
|
||||
// ── buildPrompts: invalid promptLanguage falls back ──
|
||||
const badLang = prompt.buildPrompts('doc', { ...base, promptLanguage: 'xyz' });
|
||||
assert.ok(badLang.system.includes('中文'), 'invalid promptLanguage falls back to zh default');
|
||||
assert.ok(badLang.system.includes('main language'), 'invalid promptLanguage falls back to auto default');
|
||||
|
||||
// ── buildPrompts: card count normalization ──
|
||||
// 0 is falsy so || picks DEFAULT (5), then Math.max(1, 5) = 5
|
||||
|
|
|
|||
Loading…
Reference in a new issue