2 Commits

Author SHA1 Message Date
olivier bf27867d20 chore: bump to v1.2.1 2026-09-14 20:06:58 -04:00
olivier e2c4a5264c fix: check API key before starting recording
Previously the API key was only validated after stopping the
recording, wasting a full take if no key was configured. Now
startRecording() checks the transcription provider's API key
up front and aborts with a notice before touching the mic.
2026-09-14 20:06:45 -04:00
4 changed files with 7 additions and 3 deletions
+4
View File
@@ -89,6 +89,10 @@ export default class NibbleAI extends Plugin {
new Notice("Already recording");
return;
}
if (!this.audioHandler.getTranscriptionApiKey()) {
new Notice("✘ Add your API key for the selected transcription provider in NibbleAI settings");
return;
}
try {
await this.recorder.startRecording();
this.statusBar.updateStatus(RecordingStatus.Recording);
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "nibbleai",
"name": "NibbleAI",
"version": "1.2.0",
"version": "1.2.1",
"minAppVersion": "1.12.7",
"description": "AI-powered tools for your Obsidian vault: speech-to-text, proofreading, title generation, property filling, and more.",
"author": "Olivier",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "nibbleai",
"version": "1.2.0",
"version": "1.2.1",
"description": "AI-powered tools for your Obsidian vault",
"main": "main.js",
"scripts": {
+1 -1
View File
@@ -30,7 +30,7 @@ export class AudioHandler {
}
}
private getTranscriptionApiKey(): string {
getTranscriptionApiKey(): string {
switch (this.plugin.settings.transcriptionProvider) {
case "groq":
return this.plugin.settings.groqApiKey;