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: "",
|
groqApiKey: "",
|
||||||
model: "whisper-large-v3",
|
model: "whisper-large-v3",
|
||||||
language: "",
|
language: "",
|
||||||
whisperPrompt:
|
whisperPrompt: "",
|
||||||
"opencode, voice, dictation, transcribe, command, terminal, commit, branch, pull, push, merge, issue, prompt",
|
|
||||||
endpoint: "https://api.groq.com/openai/v1/audio/transcriptions",
|
endpoint: "https://api.groq.com/openai/v1/audio/transcriptions",
|
||||||
temperature: 0,
|
temperature: 0,
|
||||||
autoSubmit: false,
|
autoSubmit: false,
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,8 @@ describe("DEFAULTS", () => {
|
||||||
expect(DEFAULTS.language).toBe("");
|
expect(DEFAULTS.language).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should have non-empty whisperPrompt", () => {
|
it("should have empty whisperPrompt by default", () => {
|
||||||
expect(DEFAULTS.whisperPrompt.length).toBeGreaterThan(50);
|
expect(DEFAULTS.whisperPrompt).toBe("");
|
||||||
});
|
|
||||||
|
|
||||||
it("should have whisperPrompt under 120 characters (terms only, no sentences)", () => {
|
|
||||||
expect(DEFAULTS.whisperPrompt.length).toBeLessThan(120);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should have autoSubmit disabled by default", () => {
|
it("should have autoSubmit disabled by default", () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue