mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 20:12:38 +08:00
refactor(ocr): remove unused langs config from ovocr provider
The langs configuration for ovocr provider is not currently configurable, so it's removed from both type definition and default config.
This commit is contained in:
parent
e823d97e31
commit
ea1aa6e5a8
@ -62,9 +62,7 @@ export const BUILTIN_OCR_PROVIDER_CONFIG_MAP = {
|
||||
paddleocr: {
|
||||
apiUrl: ''
|
||||
} satisfies OcrPpocrConfig,
|
||||
ovocr: {
|
||||
langs: ['en-us', 'zh-cn']
|
||||
} satisfies OcrOvConfig
|
||||
ovocr: {} satisfies OcrOvConfig
|
||||
} as const satisfies Record<BuiltinOcrProviderId, any>
|
||||
|
||||
export const BUILTIN_OCR_PROVIDERS_MAP = {
|
||||
|
||||
@ -204,7 +204,8 @@ export const isOcrPpocrProvider = (p: OcrProvider): p is OcrPpocrProvider => {
|
||||
|
||||
// OV OCR Types
|
||||
export type OcrOvConfig = OcrProviderBaseConfig & {
|
||||
langs?: TranslateLanguageCode[]
|
||||
// It's not configurable for now.
|
||||
// langs?: TranslateLanguageCode[]
|
||||
}
|
||||
|
||||
export type OcrOvProvider = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user