fix(transcription): empty whisperPrompt default
This commit is contained in:
parent
186403c2d5
commit
e215368feb
2 changed files with 3 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue