Merge pull request #80 from cjpais/tweak-correct-thresh

tweak default to 0.15
This commit is contained in:
CJ Pais 2025-08-15 12:12:13 -07:00 committed by GitHub
commit 83f32ee09c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ fn default_debug_mode() -> bool {
}
fn default_word_correction_threshold() -> f64 {
0.2
0.15
}
pub const SETTINGS_STORE_PATH: &str = "settings_store.json";

View file

@ -18,7 +18,7 @@ export const WordCorrectionThreshold: React.FC<
return (
<Slider
value={settings?.word_correction_threshold ?? 0.2}
value={settings?.word_correction_threshold ?? 0.15}
onChange={handleThresholdChange}
min={0.0}
max={1.0}

View file

@ -35,7 +35,7 @@ export const SettingsSchema = z.object({
overlay_position: OverlayPositionSchema,
debug_mode: z.boolean(),
custom_words: z.array(z.string()).optional().default([]),
word_correction_threshold: z.number().optional().default(0.2),
word_correction_threshold: z.number().optional().default(0.15),
});
export const BindingResponseSchema = z.object({