feat: keychain secret picker, proofreading timing and reasoning controls
- API keys: pick an existing Obsidian keychain secret per provider (SecretComponent); data.json stores only the secret name and keys are read at call time. One-time migration links the old fixed-name secrets and drops legacy fields; no more writing empty secrets on every save. - AIService: treat max-token truncation and empty content as errors instead of crashing on null.trim() or replacing text with a truncated answer. - Proofreading: live elapsed-time notice, then a summary with model, upstream host and prompt/output/reasoning tokens. - Proofreading (OpenRouter): Reasoning toggle and Effort setting, default off/low.
This commit is contained in:
1 parent
bf27867d20
commit
f66d45db68
10 files changed
+264
-108
No files matched your search
@@ -115,6 +115,7 @@ export class PropertyFiller {
|
||||
}
|
||||
|
||||
const config = resolveChatProvider(
|
||||
this.plugin.app,
|
||||
this.plugin.settings,
|
||||
this.plugin.settings.propertyGenProvider || "openrouter"
|
||||
);
|
||||
@@ -146,7 +147,7 @@ export class PropertyFiller {
|
||||
"Based on the following note content, generate a value for the property '{property}'. Return only the value, nothing else.";
|
||||
const prompt = promptTemplate.replace(/\{property\}/g, propertyName);
|
||||
|
||||
const generated = await AIService.callChatCompletion(
|
||||
const { text: generated } = await AIService.callChatCompletion(
|
||||
content,
|
||||
prompt,
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user