johns-harness 2026.11.20 → 2026.11.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/audio-transcription-runner-CntsvD7H.js +26 -5
- package/dist/audio-transcription-runner-DPzqXt3G.js +26 -5
- package/dist/audio-transcription-runner-DfRfzdqH.js +26 -5
- package/dist/audio-transcription-runner-DldZwQqa.js +26 -5
- package/dist/plugin-sdk/audio-transcription-runner-BKRoAe2_.js +26 -5
- package/dist/plugin-sdk/audio-transcription-runner-BRykE3qr.js +26 -5
- package/dist/plugin-sdk/audio-transcription-runner-BktijAfd.js +26 -5
- package/dist/plugin-sdk/audio-transcription-runner-Bsyu4xAK.js +26 -5
- package/dist/plugin-sdk/audio-transcription-runner-DDBSv70C.js +26 -5
- package/dist/plugin-sdk/audio-transcription-runner-SuEVMoyi.js +26 -5
- package/docs/NATIVE-WHISPER-MUSE.md +15 -6
- package/docs/PATCHES.md +23 -0
- package/docs/nodes/audio.md +11 -6
- package/docs/nodes/media-understanding.md +7 -7
- package/package.json +1 -1
- package/skills/openai-whisper/SKILL.md +2 -0
- package/skills/openai-whisper-api/SKILL.md +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026.11.23
|
|
4
|
+
|
|
5
|
+
### The OpenAI Whisper API is the standard audio transcription method
|
|
6
|
+
|
|
7
|
+
- **Voice notes and inbound audio now go to the OpenAI Whisper API (`whisper-1`) by default (Family 99).** With no `tools.media.audio.models` configured, audio is transcribed by provider `openai`, model `whisper-1`, tried first. The key resolves in the standard order: `OPENAI_API_KEY`, an `openai` auth profile, or `models.providers.openai.apiKey`. Nothing is written to a user config; a stock harness picks this up on install.
|
|
8
|
+
- **Before:** the default depended on what was installed. A machine with a local Whisper binary (sherpa-onnx, whisper.cpp or Python Whisper) transcribed locally and never reached the API, and a machine with only an OpenAI key sent `gpt-4o-mini-transcribe`.
|
|
9
|
+
- **Local Whisper is no longer picked automatically**, installed or not. An explicit `type: "cli"` entry in `tools.media.audio.models` still works exactly as Family 52 defines it, with the same no-shell and bounded-output rules.
|
|
10
|
+
- `DEFAULT_AUDIO_MODELS.openai` is now `whisper-1`, so an OpenAI audio entry with no model uses Whisper. Explicit `tools.media.audio.models` configuration still wins in every case.
|
|
11
|
+
- **With no OpenAI credential**, auto-detection falls through to the rest of the existing order (the active reply model's provider when it can transcribe, the Gemini CLI, then other provider keys) and never runs a local CLI.
|
|
12
|
+
- **Scope:** audio transcription at ingress only. Images and video are untouched. No agent tool, channel, config, credential, model-catalog or default-model change.
|
|
13
|
+
- **Gates:** master check **816 cards, 0 problems**; sync **0 stale**; verifier **603 pass, 0 fail**; full suite **1,420 pass, 0 fail, 5 skip** (1,425 tests), including a loopback `POST /v1/audio/transcriptions` that carries `model=whisper-1`. No hosted OpenAI call was made. Packed-artifact check passed.
|
|
14
|
+
- **Rollback:** `npm i -g johns-harness@2026.11.20`.
|
|
15
|
+
|
|
3
16
|
## 2026.11.20
|
|
4
17
|
|
|
5
18
|
- Fixed a 400 error when GPT-6.2 Astra or Sol fell back from a Codex subscription to the native OpenAI API. A legacy Chat Completions setting could send function tools and reasoning to the wrong endpoint. Both models now use `/v1/responses` on the native API and keep the requested reasoning level. Subscription routing, custom endpoints, and older models are unchanged.
|
|
@@ -68,7 +68,7 @@ const DEFAULT_PROMPT = {
|
|
|
68
68
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
69
69
|
const DEFAULT_AUDIO_MODELS = {
|
|
70
70
|
groq: "whisper-large-v3-turbo",
|
|
71
|
-
openai: "
|
|
71
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
72
72
|
deepgram: "nova-3",
|
|
73
73
|
mistral: "voxtral-mini-latest"
|
|
74
74
|
};
|
|
@@ -1751,6 +1751,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1751
1751
|
]
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
1754
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1755
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1756
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1757
|
+
async function resolveWhisperApiEntry(params) {
|
|
1758
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1759
|
+
if (!provider?.transcribeAudio) return null;
|
|
1760
|
+
try {
|
|
1761
|
+
await resolveApiKeyForProvider({
|
|
1762
|
+
provider: WHISPER_API_PROVIDER,
|
|
1763
|
+
cfg: params.cfg,
|
|
1764
|
+
agentDir: params.agentDir
|
|
1765
|
+
});
|
|
1766
|
+
} catch {
|
|
1767
|
+
return null;
|
|
1768
|
+
}
|
|
1769
|
+
return {
|
|
1770
|
+
type: "provider",
|
|
1771
|
+
provider: WHISPER_API_PROVIDER,
|
|
1772
|
+
model: WHISPER_API_MODEL
|
|
1773
|
+
};
|
|
1774
|
+
}
|
|
1754
1775
|
async function resolveKeyEntry(params) {
|
|
1755
1776
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1756
1777
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1829,12 +1850,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1829
1850
|
return entries;
|
|
1830
1851
|
}
|
|
1831
1852
|
async function resolveAutoEntries(params) {
|
|
1832
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1833
|
-
if (activeEntry) return [activeEntry];
|
|
1834
1853
|
if (params.capability === "audio") {
|
|
1835
|
-
const
|
|
1836
|
-
if (
|
|
1854
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1855
|
+
if (whisperApi) return [whisperApi];
|
|
1837
1856
|
}
|
|
1857
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1858
|
+
if (activeEntry) return [activeEntry];
|
|
1838
1859
|
if (params.capability === "image") {
|
|
1839
1860
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1840
1861
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -618,7 +618,7 @@ const DEFAULT_PROMPT = {
|
|
|
618
618
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
619
619
|
const DEFAULT_AUDIO_MODELS = {
|
|
620
620
|
groq: "whisper-large-v3-turbo",
|
|
621
|
-
openai: "
|
|
621
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
622
622
|
deepgram: "nova-3",
|
|
623
623
|
mistral: "voxtral-mini-latest"
|
|
624
624
|
};
|
|
@@ -1751,6 +1751,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1751
1751
|
]
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
1754
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1755
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1756
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1757
|
+
async function resolveWhisperApiEntry(params) {
|
|
1758
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1759
|
+
if (!provider?.transcribeAudio) return null;
|
|
1760
|
+
try {
|
|
1761
|
+
await resolveApiKeyForProvider({
|
|
1762
|
+
provider: WHISPER_API_PROVIDER,
|
|
1763
|
+
cfg: params.cfg,
|
|
1764
|
+
agentDir: params.agentDir
|
|
1765
|
+
});
|
|
1766
|
+
} catch {
|
|
1767
|
+
return null;
|
|
1768
|
+
}
|
|
1769
|
+
return {
|
|
1770
|
+
type: "provider",
|
|
1771
|
+
provider: WHISPER_API_PROVIDER,
|
|
1772
|
+
model: WHISPER_API_MODEL
|
|
1773
|
+
};
|
|
1774
|
+
}
|
|
1754
1775
|
async function resolveKeyEntry(params) {
|
|
1755
1776
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1756
1777
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1829,12 +1850,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1829
1850
|
return entries;
|
|
1830
1851
|
}
|
|
1831
1852
|
async function resolveAutoEntries(params) {
|
|
1832
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1833
|
-
if (activeEntry) return [activeEntry];
|
|
1834
1853
|
if (params.capability === "audio") {
|
|
1835
|
-
const
|
|
1836
|
-
if (
|
|
1854
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1855
|
+
if (whisperApi) return [whisperApi];
|
|
1837
1856
|
}
|
|
1857
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1858
|
+
if (activeEntry) return [activeEntry];
|
|
1838
1859
|
if (params.capability === "image") {
|
|
1839
1860
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1840
1861
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -632,7 +632,7 @@ const DEFAULT_PROMPT = {
|
|
|
632
632
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
633
633
|
const DEFAULT_AUDIO_MODELS = {
|
|
634
634
|
groq: "whisper-large-v3-turbo",
|
|
635
|
-
openai: "
|
|
635
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
636
636
|
deepgram: "nova-3",
|
|
637
637
|
mistral: "voxtral-mini-latest"
|
|
638
638
|
};
|
|
@@ -1765,6 +1765,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1765
1765
|
]
|
|
1766
1766
|
};
|
|
1767
1767
|
}
|
|
1768
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1769
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1770
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1771
|
+
async function resolveWhisperApiEntry(params) {
|
|
1772
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1773
|
+
if (!provider?.transcribeAudio) return null;
|
|
1774
|
+
try {
|
|
1775
|
+
await resolveApiKeyForProvider({
|
|
1776
|
+
provider: WHISPER_API_PROVIDER,
|
|
1777
|
+
cfg: params.cfg,
|
|
1778
|
+
agentDir: params.agentDir
|
|
1779
|
+
});
|
|
1780
|
+
} catch {
|
|
1781
|
+
return null;
|
|
1782
|
+
}
|
|
1783
|
+
return {
|
|
1784
|
+
type: "provider",
|
|
1785
|
+
provider: WHISPER_API_PROVIDER,
|
|
1786
|
+
model: WHISPER_API_MODEL
|
|
1787
|
+
};
|
|
1788
|
+
}
|
|
1768
1789
|
async function resolveKeyEntry(params) {
|
|
1769
1790
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1770
1791
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1843,12 +1864,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1843
1864
|
return entries;
|
|
1844
1865
|
}
|
|
1845
1866
|
async function resolveAutoEntries(params) {
|
|
1846
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1847
|
-
if (activeEntry) return [activeEntry];
|
|
1848
1867
|
if (params.capability === "audio") {
|
|
1849
|
-
const
|
|
1850
|
-
if (
|
|
1868
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1869
|
+
if (whisperApi) return [whisperApi];
|
|
1851
1870
|
}
|
|
1871
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1872
|
+
if (activeEntry) return [activeEntry];
|
|
1852
1873
|
if (params.capability === "image") {
|
|
1853
1874
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1854
1875
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -631,7 +631,7 @@ const DEFAULT_PROMPT = {
|
|
|
631
631
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
632
632
|
const DEFAULT_AUDIO_MODELS = {
|
|
633
633
|
groq: "whisper-large-v3-turbo",
|
|
634
|
-
openai: "
|
|
634
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
635
635
|
deepgram: "nova-3",
|
|
636
636
|
mistral: "voxtral-mini-latest"
|
|
637
637
|
};
|
|
@@ -1764,6 +1764,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1768
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1769
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1770
|
+
async function resolveWhisperApiEntry(params) {
|
|
1771
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1772
|
+
if (!provider?.transcribeAudio) return null;
|
|
1773
|
+
try {
|
|
1774
|
+
await resolveApiKeyForProvider({
|
|
1775
|
+
provider: WHISPER_API_PROVIDER,
|
|
1776
|
+
cfg: params.cfg,
|
|
1777
|
+
agentDir: params.agentDir
|
|
1778
|
+
});
|
|
1779
|
+
} catch {
|
|
1780
|
+
return null;
|
|
1781
|
+
}
|
|
1782
|
+
return {
|
|
1783
|
+
type: "provider",
|
|
1784
|
+
provider: WHISPER_API_PROVIDER,
|
|
1785
|
+
model: WHISPER_API_MODEL
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1767
1788
|
async function resolveKeyEntry(params) {
|
|
1768
1789
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1769
1790
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1842,12 +1863,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1842
1863
|
return entries;
|
|
1843
1864
|
}
|
|
1844
1865
|
async function resolveAutoEntries(params) {
|
|
1845
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1846
|
-
if (activeEntry) return [activeEntry];
|
|
1847
1866
|
if (params.capability === "audio") {
|
|
1848
|
-
const
|
|
1849
|
-
if (
|
|
1867
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1868
|
+
if (whisperApi) return [whisperApi];
|
|
1850
1869
|
}
|
|
1870
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1871
|
+
if (activeEntry) return [activeEntry];
|
|
1851
1872
|
if (params.capability === "image") {
|
|
1852
1873
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1853
1874
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -67,7 +67,7 @@ const DEFAULT_PROMPT = {
|
|
|
67
67
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
68
68
|
const DEFAULT_AUDIO_MODELS = {
|
|
69
69
|
groq: "whisper-large-v3-turbo",
|
|
70
|
-
openai: "
|
|
70
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
71
71
|
deepgram: "nova-3",
|
|
72
72
|
mistral: "voxtral-mini-latest"
|
|
73
73
|
};
|
|
@@ -1764,6 +1764,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1768
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1769
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1770
|
+
async function resolveWhisperApiEntry(params) {
|
|
1771
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1772
|
+
if (!provider?.transcribeAudio) return null;
|
|
1773
|
+
try {
|
|
1774
|
+
await resolveApiKeyForProvider({
|
|
1775
|
+
provider: WHISPER_API_PROVIDER,
|
|
1776
|
+
cfg: params.cfg,
|
|
1777
|
+
agentDir: params.agentDir
|
|
1778
|
+
});
|
|
1779
|
+
} catch {
|
|
1780
|
+
return null;
|
|
1781
|
+
}
|
|
1782
|
+
return {
|
|
1783
|
+
type: "provider",
|
|
1784
|
+
provider: WHISPER_API_PROVIDER,
|
|
1785
|
+
model: WHISPER_API_MODEL
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1767
1788
|
async function resolveKeyEntry(params) {
|
|
1768
1789
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1769
1790
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1842,12 +1863,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1842
1863
|
return entries;
|
|
1843
1864
|
}
|
|
1844
1865
|
async function resolveAutoEntries(params) {
|
|
1845
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1846
|
-
if (activeEntry) return [activeEntry];
|
|
1847
1866
|
if (params.capability === "audio") {
|
|
1848
|
-
const
|
|
1849
|
-
if (
|
|
1867
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1868
|
+
if (whisperApi) return [whisperApi];
|
|
1850
1869
|
}
|
|
1870
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1871
|
+
if (activeEntry) return [activeEntry];
|
|
1851
1872
|
if (params.capability === "image") {
|
|
1852
1873
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1853
1874
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -67,7 +67,7 @@ const DEFAULT_PROMPT = {
|
|
|
67
67
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
68
68
|
const DEFAULT_AUDIO_MODELS = {
|
|
69
69
|
groq: "whisper-large-v3-turbo",
|
|
70
|
-
openai: "
|
|
70
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
71
71
|
deepgram: "nova-3",
|
|
72
72
|
mistral: "voxtral-mini-latest"
|
|
73
73
|
};
|
|
@@ -1764,6 +1764,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1768
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1769
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1770
|
+
async function resolveWhisperApiEntry(params) {
|
|
1771
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1772
|
+
if (!provider?.transcribeAudio) return null;
|
|
1773
|
+
try {
|
|
1774
|
+
await resolveApiKeyForProvider({
|
|
1775
|
+
provider: WHISPER_API_PROVIDER,
|
|
1776
|
+
cfg: params.cfg,
|
|
1777
|
+
agentDir: params.agentDir
|
|
1778
|
+
});
|
|
1779
|
+
} catch {
|
|
1780
|
+
return null;
|
|
1781
|
+
}
|
|
1782
|
+
return {
|
|
1783
|
+
type: "provider",
|
|
1784
|
+
provider: WHISPER_API_PROVIDER,
|
|
1785
|
+
model: WHISPER_API_MODEL
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1767
1788
|
async function resolveKeyEntry(params) {
|
|
1768
1789
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1769
1790
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1842,12 +1863,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1842
1863
|
return entries;
|
|
1843
1864
|
}
|
|
1844
1865
|
async function resolveAutoEntries(params) {
|
|
1845
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1846
|
-
if (activeEntry) return [activeEntry];
|
|
1847
1866
|
if (params.capability === "audio") {
|
|
1848
|
-
const
|
|
1849
|
-
if (
|
|
1867
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1868
|
+
if (whisperApi) return [whisperApi];
|
|
1850
1869
|
}
|
|
1870
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1871
|
+
if (activeEntry) return [activeEntry];
|
|
1851
1872
|
if (params.capability === "image") {
|
|
1852
1873
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1853
1874
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -67,7 +67,7 @@ const DEFAULT_PROMPT = {
|
|
|
67
67
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
68
68
|
const DEFAULT_AUDIO_MODELS = {
|
|
69
69
|
groq: "whisper-large-v3-turbo",
|
|
70
|
-
openai: "
|
|
70
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
71
71
|
deepgram: "nova-3",
|
|
72
72
|
mistral: "voxtral-mini-latest"
|
|
73
73
|
};
|
|
@@ -1764,6 +1764,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1768
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1769
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1770
|
+
async function resolveWhisperApiEntry(params) {
|
|
1771
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1772
|
+
if (!provider?.transcribeAudio) return null;
|
|
1773
|
+
try {
|
|
1774
|
+
await resolveApiKeyForProvider({
|
|
1775
|
+
provider: WHISPER_API_PROVIDER,
|
|
1776
|
+
cfg: params.cfg,
|
|
1777
|
+
agentDir: params.agentDir
|
|
1778
|
+
});
|
|
1779
|
+
} catch {
|
|
1780
|
+
return null;
|
|
1781
|
+
}
|
|
1782
|
+
return {
|
|
1783
|
+
type: "provider",
|
|
1784
|
+
provider: WHISPER_API_PROVIDER,
|
|
1785
|
+
model: WHISPER_API_MODEL
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1767
1788
|
async function resolveKeyEntry(params) {
|
|
1768
1789
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1769
1790
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1842,12 +1863,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1842
1863
|
return entries;
|
|
1843
1864
|
}
|
|
1844
1865
|
async function resolveAutoEntries(params) {
|
|
1845
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1846
|
-
if (activeEntry) return [activeEntry];
|
|
1847
1866
|
if (params.capability === "audio") {
|
|
1848
|
-
const
|
|
1849
|
-
if (
|
|
1867
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1868
|
+
if (whisperApi) return [whisperApi];
|
|
1850
1869
|
}
|
|
1870
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1871
|
+
if (activeEntry) return [activeEntry];
|
|
1851
1872
|
if (params.capability === "image") {
|
|
1852
1873
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1853
1874
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -67,7 +67,7 @@ const DEFAULT_PROMPT = {
|
|
|
67
67
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
68
68
|
const DEFAULT_AUDIO_MODELS = {
|
|
69
69
|
groq: "whisper-large-v3-turbo",
|
|
70
|
-
openai: "
|
|
70
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
71
71
|
deepgram: "nova-3",
|
|
72
72
|
mistral: "voxtral-mini-latest"
|
|
73
73
|
};
|
|
@@ -1764,6 +1764,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1768
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1769
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1770
|
+
async function resolveWhisperApiEntry(params) {
|
|
1771
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1772
|
+
if (!provider?.transcribeAudio) return null;
|
|
1773
|
+
try {
|
|
1774
|
+
await resolveApiKeyForProvider({
|
|
1775
|
+
provider: WHISPER_API_PROVIDER,
|
|
1776
|
+
cfg: params.cfg,
|
|
1777
|
+
agentDir: params.agentDir
|
|
1778
|
+
});
|
|
1779
|
+
} catch {
|
|
1780
|
+
return null;
|
|
1781
|
+
}
|
|
1782
|
+
return {
|
|
1783
|
+
type: "provider",
|
|
1784
|
+
provider: WHISPER_API_PROVIDER,
|
|
1785
|
+
model: WHISPER_API_MODEL
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1767
1788
|
async function resolveKeyEntry(params) {
|
|
1768
1789
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1769
1790
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1842,12 +1863,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1842
1863
|
return entries;
|
|
1843
1864
|
}
|
|
1844
1865
|
async function resolveAutoEntries(params) {
|
|
1845
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1846
|
-
if (activeEntry) return [activeEntry];
|
|
1847
1866
|
if (params.capability === "audio") {
|
|
1848
|
-
const
|
|
1849
|
-
if (
|
|
1867
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1868
|
+
if (whisperApi) return [whisperApi];
|
|
1850
1869
|
}
|
|
1870
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1871
|
+
if (activeEntry) return [activeEntry];
|
|
1851
1872
|
if (params.capability === "image") {
|
|
1852
1873
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1853
1874
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -67,7 +67,7 @@ const DEFAULT_PROMPT = {
|
|
|
67
67
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
68
68
|
const DEFAULT_AUDIO_MODELS = {
|
|
69
69
|
groq: "whisper-large-v3-turbo",
|
|
70
|
-
openai: "
|
|
70
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
71
71
|
deepgram: "nova-3",
|
|
72
72
|
mistral: "voxtral-mini-latest"
|
|
73
73
|
};
|
|
@@ -1788,6 +1788,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1788
1788
|
]
|
|
1789
1789
|
};
|
|
1790
1790
|
}
|
|
1791
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1792
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1793
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1794
|
+
async function resolveWhisperApiEntry(params) {
|
|
1795
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1796
|
+
if (!provider?.transcribeAudio) return null;
|
|
1797
|
+
try {
|
|
1798
|
+
await resolveApiKeyForProvider({
|
|
1799
|
+
provider: WHISPER_API_PROVIDER,
|
|
1800
|
+
cfg: params.cfg,
|
|
1801
|
+
agentDir: params.agentDir
|
|
1802
|
+
});
|
|
1803
|
+
} catch {
|
|
1804
|
+
return null;
|
|
1805
|
+
}
|
|
1806
|
+
return {
|
|
1807
|
+
type: "provider",
|
|
1808
|
+
provider: WHISPER_API_PROVIDER,
|
|
1809
|
+
model: WHISPER_API_MODEL
|
|
1810
|
+
};
|
|
1811
|
+
}
|
|
1791
1812
|
async function resolveKeyEntry(params) {
|
|
1792
1813
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1793
1814
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1866,12 +1887,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1866
1887
|
return entries;
|
|
1867
1888
|
}
|
|
1868
1889
|
async function resolveAutoEntries(params) {
|
|
1869
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1870
|
-
if (activeEntry) return [activeEntry];
|
|
1871
1890
|
if (params.capability === "audio") {
|
|
1872
|
-
const
|
|
1873
|
-
if (
|
|
1891
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1892
|
+
if (whisperApi) return [whisperApi];
|
|
1874
1893
|
}
|
|
1894
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1895
|
+
if (activeEntry) return [activeEntry];
|
|
1875
1896
|
if (params.capability === "image") {
|
|
1876
1897
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1877
1898
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -67,7 +67,7 @@ const DEFAULT_PROMPT = {
|
|
|
67
67
|
const DEFAULT_VIDEO_MAX_BASE64_BYTES = 70 * MB;
|
|
68
68
|
const DEFAULT_AUDIO_MODELS = {
|
|
69
69
|
groq: "whisper-large-v3-turbo",
|
|
70
|
-
openai: "
|
|
70
|
+
openai: "whisper-1", // JOHNNESS_PATCH_WHISPER_API_99: Whisper is the standard OpenAI audio model
|
|
71
71
|
deepgram: "nova-3",
|
|
72
72
|
mistral: "voxtral-mini-latest"
|
|
73
73
|
};
|
|
@@ -1764,6 +1764,27 @@ async function resolveGeminiCliEntry(_capability) {
|
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
+
// JOHNNESS_PATCH_WHISPER_API_99: the OpenAI Whisper API is the standard transcription method.
|
|
1768
|
+
const WHISPER_API_PROVIDER = "openai";
|
|
1769
|
+
const WHISPER_API_MODEL = "whisper-1";
|
|
1770
|
+
async function resolveWhisperApiEntry(params) {
|
|
1771
|
+
const provider = getMediaUnderstandingProvider(WHISPER_API_PROVIDER, params.providerRegistry);
|
|
1772
|
+
if (!provider?.transcribeAudio) return null;
|
|
1773
|
+
try {
|
|
1774
|
+
await resolveApiKeyForProvider({
|
|
1775
|
+
provider: WHISPER_API_PROVIDER,
|
|
1776
|
+
cfg: params.cfg,
|
|
1777
|
+
agentDir: params.agentDir
|
|
1778
|
+
});
|
|
1779
|
+
} catch {
|
|
1780
|
+
return null;
|
|
1781
|
+
}
|
|
1782
|
+
return {
|
|
1783
|
+
type: "provider",
|
|
1784
|
+
provider: WHISPER_API_PROVIDER,
|
|
1785
|
+
model: WHISPER_API_MODEL
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1767
1788
|
async function resolveKeyEntry(params) {
|
|
1768
1789
|
const { cfg, agentDir, providerRegistry, capability } = params;
|
|
1769
1790
|
const checkProvider = async (providerId, model) => {
|
|
@@ -1842,12 +1863,12 @@ function resolveImageModelFromAgentDefaults(cfg) {
|
|
|
1842
1863
|
return entries;
|
|
1843
1864
|
}
|
|
1844
1865
|
async function resolveAutoEntries(params) {
|
|
1845
|
-
const activeEntry = await resolveActiveModelEntry(params);
|
|
1846
|
-
if (activeEntry) return [activeEntry];
|
|
1847
1866
|
if (params.capability === "audio") {
|
|
1848
|
-
const
|
|
1849
|
-
if (
|
|
1867
|
+
const whisperApi = await resolveWhisperApiEntry(params); // JOHNNESS_PATCH_WHISPER_API_99: the standard method, ahead of every local CLI
|
|
1868
|
+
if (whisperApi) return [whisperApi];
|
|
1850
1869
|
}
|
|
1870
|
+
const activeEntry = await resolveActiveModelEntry(params);
|
|
1871
|
+
if (activeEntry) return [activeEntry];
|
|
1851
1872
|
if (params.capability === "image") {
|
|
1852
1873
|
const imageModelEntries = resolveImageModelFromAgentDefaults(params.cfg);
|
|
1853
1874
|
if (imageModelEntries.length > 0) return imageModelEntries;
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
# Native local Whisper and Meta Muse Spark
|
|
2
2
|
|
|
3
|
-
Families 52 and
|
|
3
|
+
Families 52, 53 and 99 extend the frozen 2026.3.7 runtime. None of them changes your default agent model, credentials or installed dependencies.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Transcription default (Family 99)
|
|
6
|
+
|
|
7
|
+
**The OpenAI Whisper API is the standard audio transcription method.** Inbound audio and voice notes are transcribed at ingress with `provider: "openai"`, `model: "whisper-1"`, using `OPENAI_API_KEY`, an `openai` auth profile, or `models.providers.openai.apiKey`. Nothing local is needed, installed or detected, and no local transcription binary is ever auto-selected. `gpt-4o-mini-transcribe` is no longer the OpenAI audio default. An explicit `tools.media.audio.models` list still wins over the default, and a configured `type: "cli"` entry behaves exactly as Family 52 describes below.
|
|
8
|
+
|
|
9
|
+
## How inbound audio is transcribed
|
|
6
10
|
|
|
7
11
|
Audio is transcribed at ingress, before the agent receives the message. It is not an agent tool call:
|
|
8
12
|
|
|
9
13
|
1. Channel ingress builds `MediaPath`/`MediaType` and normalizes attachments.
|
|
10
14
|
2. `applyMediaUnderstanding` calls the audio `runCapability` in the ten `audio-transcription-runner` bundles. Telegram audio preflight also uses `runAudioTranscription`.
|
|
11
|
-
3. Explicit `tools.media.audio.models` entries win. With no explicit models, the
|
|
15
|
+
3. Explicit `tools.media.audio.models` entries win. With no explicit models, the OpenAI Whisper API entry (`openai` / `whisper-1`) is chosen first when its credentials resolve; otherwise resolution continues to the Gemini CLI and then other provider keys. Local audio binaries are not part of that order.
|
|
12
16
|
4. CLI transcription produces an `audio.transcription` output. `applyMediaUnderstanding` writes the transcript into `ctx.Body` and `ctx.Transcript`, populates command/raw text when there is no caption, and calls `finalizeInboundContext` with `forceBodyForAgent: true`.
|
|
13
17
|
5. The agent receives the transcript in the inbound user message. No Whisper tool invocation is needed.
|
|
14
18
|
|
|
19
|
+
## Local Whisper (explicit opt-in only)
|
|
20
|
+
|
|
21
|
+
Local Whisper remains supported for offline or air-gapped use, but it is **never chosen automatically**. Configure it explicitly:
|
|
22
|
+
|
|
15
23
|
### Opt in
|
|
16
24
|
|
|
17
25
|
Install a current `openai-whisper` CLI and `ffmpeg` yourself. The CLI must accept `--model /absolute/checkpoint.pt`; release `20250625` is tested. Older name-only CLIs fail closed with an upgrade instruction. Provision a trusted Whisper checkpoint separately. Python checkpoints are trusted executable model artifacts, not untrusted attachments.
|
|
@@ -38,9 +46,9 @@ Example `johnness.json` fragment:
|
|
|
38
46
|
|
|
39
47
|
For multilingual input, use a multilingual checkpoint rather than `.en`, and omit `--language` or choose the correct language. Set `command` to the absolute executable path if the gateway PATH differs from your terminal. Restart after changing service environment variables.
|
|
40
48
|
|
|
41
|
-
For automatic
|
|
49
|
+
For automatic checkpoint resolution inside an explicit CLI entry, `WHISPER_MODEL_PATH` selects an existing checkpoint. Otherwise the detector looks only in the local Whisper cache for `turbo`, `tiny.en`, `tiny`, `base.en`, and `base`, in that order. `turbo` resolves to `large-v3-turbo.pt`. Explicit `--model` names are also resolved to local files under `--model_dir`, `$XDG_CACHE_HOME/whisper`, or `~/.cache/whisper`. The selected file is passed to Whisper as an absolute path. **johnness never downloads a model.** A local binary is only reached through a configured entry.
|
|
42
50
|
|
|
43
|
-
The existing whisper.cpp integration remains supported. Use `command: "whisper-cli"` with `args: ["-m", "/absolute/models/ggml-tiny.bin", "{{MediaPath}}"]`, or set `WHISPER_CPP_MODEL` for
|
|
51
|
+
The existing whisper.cpp integration remains supported. Use `command: "whisper-cli"` with `args: ["-m", "/absolute/models/ggml-tiny.bin", "{{MediaPath}}"]`, or set `WHISPER_CPP_MODEL` for checkpoint resolution inside that explicit entry. Input formats depend on your whisper.cpp build; a 16 kHz mono WAV is the portable choice. Python Whisper uses ffmpeg to decode channel audio such as OGG/Opus.
|
|
44
52
|
|
|
45
53
|
### Family 52 guarantees
|
|
46
54
|
|
|
@@ -101,7 +109,8 @@ Verified 2026-09-07. Direct Meta HTTP fetches returned 500 in this environment,
|
|
|
101
109
|
```sh
|
|
102
110
|
python3 scripts/patch-native-whisper.py
|
|
103
111
|
python3 scripts/patch-muse-spark.py
|
|
104
|
-
|
|
112
|
+
python3 scripts/patch-whisper-api-99.py
|
|
113
|
+
node --test tests/native-whisper.test.mjs tests/muse-spark.test.mjs tests/native-whisper-muse-patchers.test.mjs tests/whisper-api-99.test.mjs
|
|
105
114
|
node --test tests/*.test.mjs
|
|
106
115
|
npm install
|
|
107
116
|
bash scripts/verify-patches.sh
|
package/docs/PATCHES.md
CHANGED
|
@@ -3314,3 +3314,26 @@ Rollback: `npm i -g johns-harness@2026.11.9`.
|
|
|
3314
3314
|
**Tests:** `tests/call-auth-98.test.mjs` (7): manifest coverage and exact replay, drift refusal before any write, return on the first call after a cooldown ends, hold-off after a failover and after a failed return, locks and other providers untouched, status from the transcript, and the isolated-gateway run above.
|
|
3315
3315
|
|
|
3316
3316
|
**Rollback:** `npm i -g johns-harness@2026.11.13`.
|
|
3317
|
+
|
|
3318
|
+
## Family 99: the OpenAI Whisper API is the standard audio transcription method (2026-11-23)
|
|
3319
|
+
|
|
3320
|
+
**Marker:** `JOHNNESS_PATCH_WHISPER_API_99`. **Release:** `johns-harness@2026.11.23`.
|
|
3321
|
+
|
|
3322
|
+
**Request:** "include Whisper in John's Harness and make it the standard audio transcription method. Inbound audio and voice notes should be transcribed with the OpenAI Whisper API (model whisper-1, key from OPENAI_API_KEY or the config) by default, with no local whisper."
|
|
3323
|
+
|
|
3324
|
+
**Before:** whether a voice note reached the Whisper API depended on what happened to be installed. With no `tools.media.audio.models` configured, the frozen auto order was: the active reply model's provider when it can transcribe, then **local CLIs** (sherpa-onnx, whisper.cpp, Python Whisper), then the Gemini CLI, then provider keys. A machine with any local Whisper binary therefore transcribed locally, and a machine with only an OpenAI key sent `gpt-4o-mini-transcribe`, not the Whisper model John wants.
|
|
3325
|
+
|
|
3326
|
+
**Change (ten audio runners):**
|
|
3327
|
+
- New `resolveWhisperApiEntry` returns `{ type: "provider", provider: "openai", model: "whisper-1" }` when the `openai` media provider can transcribe and its credential resolves. Credentials follow the standard order: `OPENAI_API_KEY`, an `openai` auth profile, or `models.providers.openai.apiKey`.
|
|
3328
|
+
- Audio auto-detection now tries that entry **first**, before the active reply model. Images and video are untouched.
|
|
3329
|
+
- The local audio block (`resolveLocalAudioEntry`) is removed from auto-detection, so sherpa-onnx, whisper.cpp and Python Whisper are never selected automatically, installed or not. An explicit `type: "cli"` entry keeps working exactly as Family 52 left it, with the same no-shell, absolute-checkpoint, bounded-output rules.
|
|
3330
|
+
- `DEFAULT_AUDIO_MODELS.openai` is now `whisper-1`, so any OpenAI audio entry without a model uses the Whisper model.
|
|
3331
|
+
- Explicit `tools.media.audio.models` configuration still wins over the default in every case.
|
|
3332
|
+
|
|
3333
|
+
**Scope:** audio transcription at ingress only. No agent tool, skill, channel, config, credential, model-catalog or default-model change. Nothing is written to a user config: a stock harness picks up `whisper-1` as soon as the release is installed.
|
|
3334
|
+
|
|
3335
|
+
**Replay:** `patches/whisper-api-99/changes.json`, `scripts/patch-whisper-api-99.py` (`--check` read-only, `--present-only`, `--record`). Ten bundles, three uniform hunks each. A bundle is all-hunks-or-none: a half-applied or hand-edited file is reported as anchor drift and nothing is written. Verifier checks 99.1 to 99.6.
|
|
3336
|
+
|
|
3337
|
+
**Tests:** `tests/whisper-api-99.test.mjs` (8): Whisper API chosen with `OPENAI_API_KEY`; chosen with the key only in config; the real provider path posts `multipart/form-data` with `model=whisper-1` and `Bearer` auth to `/v1/audio/transcriptions` on a loopback server and returns its transcript; a `whisper`/`whisper-cli`/`sherpa-onnx-offline` binary on `PATH` is never selected and never executed; with no OpenAI auth the order falls to the next provider and still never runs a local CLI; an explicit CLI entry still wins; patcher replay is byte-identical and drift fails closed; all ten bundles carry the default with no local auto-selection. The loopback run is the real transport: no hosted OpenAI call is claimed.
|
|
3338
|
+
|
|
3339
|
+
**Rollback:** `npm i -g johns-harness@2026.11.20`.
|
package/docs/nodes/audio.md
CHANGED
|
@@ -23,12 +23,17 @@ title: "Audio and Voice Notes"
|
|
|
23
23
|
If you **don’t configure models** and `tools.media.audio.enabled` is **not** set to `false`,
|
|
24
24
|
Johnness auto-detects in this order and stops at the first working option:
|
|
25
25
|
|
|
26
|
-
1. **
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
1. **OpenAI Whisper API** — `provider: "openai"`, `model: "whisper-1"`, using `OPENAI_API_KEY`,
|
|
27
|
+
an auth profile for `openai`, or `models.providers.openai.apiKey`. This is the standard
|
|
28
|
+
transcription method for inbound audio and voice notes; no local model is installed, loaded or
|
|
29
|
+
detected.
|
|
30
30
|
2. **Gemini CLI** (`gemini`) using `read_many_files`
|
|
31
|
-
3. **Provider keys** (
|
|
31
|
+
3. **Provider keys** (Groq → Deepgram → Google → Mistral)
|
|
32
|
+
|
|
33
|
+
Local transcription binaries (`whisper`, `whisper-cli`, `sherpa-onnx-offline`) are **never**
|
|
34
|
+
selected automatically. They run only when you configure a `type: "cli"` entry yourself, and
|
|
35
|
+
then only with the Family 52 safety rules (literal argv, no shell, absolute checkpoint paths,
|
|
36
|
+
bounded output). Local Whisper is a fallback you opt into, not the default.
|
|
32
37
|
|
|
33
38
|
To disable auto-detection, set `tools.media.audio.enabled: false`.
|
|
34
39
|
To customize, set `tools.media.audio.models`.
|
|
@@ -136,7 +141,7 @@ Note: Binary detection is best-effort across macOS/Linux/Windows; ensure the CLI
|
|
|
136
141
|
- Default size cap is 20MB (`tools.media.audio.maxBytes`). Oversize audio is skipped for that model and the next entry is tried.
|
|
137
142
|
- Tiny/empty audio files below 1024 bytes are skipped before provider/CLI transcription.
|
|
138
143
|
- Default `maxChars` for audio is **unset** (full transcript). Set `tools.media.audio.maxChars` or per-entry `maxChars` to trim output.
|
|
139
|
-
- OpenAI auto default is `gpt-4o-
|
|
144
|
+
- OpenAI auto default is `whisper-1` (the Whisper API). Set `model: "gpt-4o-transcribe"` or `"gpt-4o-mini-transcribe"` in an explicit entry if you want a different OpenAI transcription model.
|
|
140
145
|
- Use `tools.media.audio.attachments` to process multiple voice notes (`mode: "all"` + `maxAttachments`).
|
|
141
146
|
- Transcript is available to templates as `{{Transcript}}`.
|
|
142
147
|
- `tools.media.audio.echoTranscript` is off by default; enable it to send transcript confirmation back to the originating chat before agent processing.
|
|
@@ -130,7 +130,8 @@ Rules:
|
|
|
130
130
|
- If the model returns more than `maxChars`, output is trimmed.
|
|
131
131
|
- `prompt` defaults to simple “Describe the {media}.” plus the `maxChars` guidance (image/video only).
|
|
132
132
|
- If `<capability>.enabled: true` but no models are configured, Johnness tries the
|
|
133
|
-
**active reply model** when its provider supports the capability.
|
|
133
|
+
**active reply model** when its provider supports the capability. Audio is the exception:
|
|
134
|
+
the OpenAI Whisper API (`openai` / `whisper-1`) is tried first.
|
|
134
135
|
|
|
135
136
|
### Auto-detect media understanding (default)
|
|
136
137
|
|
|
@@ -138,13 +139,12 @@ If `tools.media.<capability>.enabled` is **not** set to `false` and you haven’
|
|
|
138
139
|
configured models, Johnness auto-detects in this order and **stops at the first
|
|
139
140
|
working option**:
|
|
140
141
|
|
|
141
|
-
1. **
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
- `whisper` (Python CLI; downloads models automatically)
|
|
142
|
+
1. **OpenAI Whisper API** (audio only) — `openai` / `whisper-1`, using `OPENAI_API_KEY`, an
|
|
143
|
+
`openai` auth profile, or `models.providers.openai.apiKey`. Local transcription binaries are
|
|
144
|
+
never auto-selected; they run only from an explicit `type: "cli"` entry.
|
|
145
145
|
2. **Gemini CLI** (`gemini`) using `read_many_files`
|
|
146
146
|
3. **Provider keys**
|
|
147
|
-
- Audio:
|
|
147
|
+
- Audio: Groq → Deepgram → Google → Mistral
|
|
148
148
|
- Image: OpenAI → Anthropic → Google → MiniMax
|
|
149
149
|
- Video: Google
|
|
150
150
|
|
|
@@ -204,7 +204,7 @@ If you omit `capabilities`, the entry is eligible for the list it appears in.
|
|
|
204
204
|
- Prefer the strongest latest-generation model available for each media capability when quality and safety matter.
|
|
205
205
|
- For tool-enabled agents handling untrusted inputs, avoid older/weaker media models.
|
|
206
206
|
- Keep at least one fallback per capability for availability (quality model + faster/cheaper model).
|
|
207
|
-
- CLI fallbacks (`whisper-cli`, `whisper`, `gemini`) are useful when provider APIs are unavailable.
|
|
207
|
+
- CLI fallbacks (`whisper-cli`, `whisper`, `gemini`) are useful when provider APIs are unavailable, but they are opt-in: local transcription binaries are never selected automatically. The default audio path is the OpenAI Whisper API (`whisper-1`).
|
|
208
208
|
- `parakeet-mlx` note: with `--output-dir`, Johnness reads `<output-dir>/<media-basename>.txt` when output format is `txt` (or unspecified); non-`txt` formats fall back to stdout.
|
|
209
209
|
|
|
210
210
|
## Attachment policy
|
package/package.json
CHANGED
|
@@ -26,6 +26,8 @@ metadata:
|
|
|
26
26
|
|
|
27
27
|
Use `whisper` to transcribe audio locally.
|
|
28
28
|
|
|
29
|
+
> Inbound audio and voice notes are already transcribed by the harness with the OpenAI Whisper API (`openai` / `whisper-1`). This local CLI is for explicitly requested offline transcription only, never the default path.
|
|
30
|
+
|
|
29
31
|
Quick start
|
|
30
32
|
|
|
31
33
|
- `whisper /path/audio.mp3 --model medium --output_format txt --output_dir .`
|
|
@@ -17,6 +17,8 @@ metadata:
|
|
|
17
17
|
|
|
18
18
|
Transcribe an audio file via OpenAI’s `/v1/audio/transcriptions` endpoint.
|
|
19
19
|
|
|
20
|
+
> This is the same method the harness uses by default for inbound audio and voice notes (`provider: "openai"`, `model: "whisper-1"`). Use this skill for files that arrive outside a channel — for example a file path you were handed — not to re-transcribe an inbound voice note, whose transcript is already in the message.
|
|
21
|
+
|
|
20
22
|
## Quick start
|
|
21
23
|
|
|
22
24
|
```bash
|