mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +08:00
refactor(data): simplify ocr preferences mapping structure
Remove redundant ocr provider config mappings and consolidate to a single image provider id mapping
This commit is contained in:
parent
281632f859
commit
8aaf26e420
@ -747,20 +747,8 @@ export const REDUX_STORE_MAPPINGS = {
|
||||
],
|
||||
ocr: [
|
||||
{
|
||||
originalKey: 'ocr.configs.tesseract',
|
||||
targetKey: 'ocr.provider.config.tesseract'
|
||||
},
|
||||
{
|
||||
originalKey: 'ocr.configs.system',
|
||||
targetKey: 'ocr.provider.config.system'
|
||||
},
|
||||
{
|
||||
originalKey: 'ocr.configs.paddleocr',
|
||||
targetKey: 'ocr.provider.config.paddleocr'
|
||||
},
|
||||
{
|
||||
originalKey: 'ocr.configs.ovocr',
|
||||
targetKey: 'ocr.provider.config.ovocr'
|
||||
originalKey: 'ocr.imageProviderId',
|
||||
targetKey: 'ocr.settings.image_provider_id'
|
||||
}
|
||||
]
|
||||
} as const satisfies Record<
|
||||
|
||||
Loading…
Reference in New Issue
Block a user