Commit 9ceb202a by Finley Ge Committed by GitHub

feat(global): make whisper config fields optional (#7133)

parent da3d14bc
...@@ -52,10 +52,10 @@ export const AppWhisperConfigTypeSchema = z.object({ ...@@ -52,10 +52,10 @@ export const AppWhisperConfigTypeSchema = z.object({
}), }),
autoSend: BoolSchema.meta({ autoSend: BoolSchema.meta({
description: '语音识别完成后是否自动发送问题' description: '语音识别完成后是否自动发送问题'
}), }).default(false),
autoTTSResponse: BoolSchema.meta({ autoTTSResponse: BoolSchema.meta({
description: '语音输入后是否自动播报应用回复' description: '语音输入后是否自动播报应用回复'
}) }).default(false)
}); });
export type AppWhisperConfigType = z.infer<typeof AppWhisperConfigTypeSchema>; export type AppWhisperConfigType = z.infer<typeof AppWhisperConfigTypeSchema>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment