mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 07:19:02 +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: [
|
ocr: [
|
||||||
{
|
{
|
||||||
originalKey: 'ocr.configs.tesseract',
|
originalKey: 'ocr.imageProviderId',
|
||||||
targetKey: 'ocr.provider.config.tesseract'
|
targetKey: 'ocr.settings.image_provider_id'
|
||||||
},
|
|
||||||
{
|
|
||||||
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'
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
} as const satisfies Record<
|
} as const satisfies Record<
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user