mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
feat(vscode): enable voice input for signed-in Kilo users
This commit is contained in:
@@ -357,9 +357,6 @@ export const Info = Schema.Struct({
|
||||
agent_manager_tool: Schema.optional(Schema.Boolean).annotate({
|
||||
description: "Enable the VS Code Agent Manager orchestration tool",
|
||||
}),
|
||||
speech_to_text: Schema.optional(Schema.Boolean).annotate({
|
||||
description: "Enable speech-to-text voice input in Kilo clients",
|
||||
}),
|
||||
speech_to_text_model: Schema.optional(Schema.String).annotate({
|
||||
description: "Speech-to-text transcription model ID to use for voice input",
|
||||
}),
|
||||
|
||||
@@ -1,26 +1,19 @@
|
||||
import { describe, expect, test } from "bun:test"
|
||||
import { Config } from "../../../src/config/config"
|
||||
|
||||
describe("Config.Info experimental speech-to-text", () => {
|
||||
test("parses speech-to-text enablement and model", () => {
|
||||
describe("Config.Info experimental speech-to-text model", () => {
|
||||
test("parses the selected speech-to-text model", () => {
|
||||
const parsed = Config.Info.zod.parse({
|
||||
experimental: {
|
||||
speech_to_text: true,
|
||||
speech_to_text_model: "openai/gpt-4o-mini-transcribe",
|
||||
},
|
||||
})
|
||||
|
||||
expect(parsed.experimental?.speech_to_text).toBe(true)
|
||||
expect(parsed.experimental?.speech_to_text_model).toBe("openai/gpt-4o-mini-transcribe")
|
||||
})
|
||||
|
||||
test("preserves explicit disabled speech-to-text", () => {
|
||||
const parsed = Config.Info.zod.parse({ experimental: { speech_to_text: false } })
|
||||
expect(parsed.experimental?.speech_to_text).toBe(false)
|
||||
})
|
||||
|
||||
test("keeps existing experimental defaults", () => {
|
||||
const parsed = Config.Info.zod.parse({ experimental: { speech_to_text: true } })
|
||||
const parsed = Config.Info.zod.parse({ experimental: { speech_to_text_model: "google/chirp-3" } })
|
||||
expect(parsed.experimental?.openTelemetry).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user