mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 15:49:29 +08:00
feat(ocr): 添加 Tesseract OCR 提供者类型检查函数
This commit is contained in:
parent
428de0836d
commit
fd5c06d46f
@ -134,3 +134,7 @@ export type OcrTesseractConfig = OcrProviderConfig & {
|
|||||||
export type OcrTesseractProvider = BuiltinOcrProvider & {
|
export type OcrTesseractProvider = BuiltinOcrProvider & {
|
||||||
config: OcrTesseractConfig
|
config: OcrTesseractConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const isOcrTesseractProvider = (p: OcrProvider): p is OcrTesseractProvider => {
|
||||||
|
return p.id === BuiltinOcrProviderIds.tesseract
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user