mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +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 & {
|
||||
config: OcrTesseractConfig
|
||||
}
|
||||
|
||||
export const isOcrTesseractProvider = (p: OcrProvider): p is OcrTesseractProvider => {
|
||||
return p.id === BuiltinOcrProviderIds.tesseract
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user