fix(transcription): empty whisperPrompt default

This commit is contained in:
opencode-agent 2026-08-04 12:08:56 +00:00
parent 186403c2d5
commit e215368feb
2 changed files with 3 additions and 8 deletions

View file

@ -5,8 +5,7 @@ export const DEFAULTS: AppConfig = {
groqApiKey: "",
model: "whisper-large-v3",
language: "",
whisperPrompt:
"opencode, voice, dictation, transcribe, command, terminal, commit, branch, pull, push, merge, issue, prompt",
whisperPrompt: "",
endpoint: "https://api.groq.com/openai/v1/audio/transcriptions",
temperature: 0,
autoSubmit: false,

View file

@ -26,12 +26,8 @@ describe("DEFAULTS", () => {
expect(DEFAULTS.language).toBe("");
});
it("should have non-empty whisperPrompt", () => {
expect(DEFAULTS.whisperPrompt.length).toBeGreaterThan(50);
});
it("should have whisperPrompt under 120 characters (terms only, no sentences)", () => {
expect(DEFAULTS.whisperPrompt.length).toBeLessThan(120);
it("should have empty whisperPrompt by default", () => {
expect(DEFAULTS.whisperPrompt).toBe("");
});
it("should have autoSubmit disabled by default", () => {