File tree Expand file tree Collapse file tree
apps/sim/lib/knowledge/documents Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,28 +6,28 @@ export interface OcrRequestPolicy {
66}
77
88/** Mistral's hosted OCR request limits for uploaded documents. */
9- export const MISTRAL_OCR_REQUEST_POLICY : OcrRequestPolicy = {
9+ export const MISTRAL_OCR_REQUEST_POLICY = {
1010 maxBytes : 50_000_000 ,
1111 maxPages : 1000 ,
1212 maxChunks : 10 ,
1313 concurrency : 2 ,
14- }
14+ } as const satisfies OcrRequestPolicy
1515
1616/** Current Azure-hosted Mistral Document AI request limits. */
17- const AZURE_MISTRAL_CURRENT_REQUEST_POLICY : OcrRequestPolicy = {
17+ const AZURE_MISTRAL_CURRENT_REQUEST_POLICY = {
1818 maxBytes : 30_000_000 ,
1919 maxPages : 30 ,
2020 maxChunks : 10 ,
2121 concurrency : 1 ,
22- }
22+ } as const satisfies OcrRequestPolicy
2323
2424/** Historical Azure Mistral OCR deployments accepted the direct-provider envelope. */
25- const AZURE_MISTRAL_LEGACY_REQUEST_POLICY : OcrRequestPolicy = {
25+ const AZURE_MISTRAL_LEGACY_REQUEST_POLICY = {
2626 maxBytes : 50_000_000 ,
2727 maxPages : 1000 ,
2828 maxChunks : 10 ,
2929 concurrency : 1 ,
30- }
30+ } as const satisfies OcrRequestPolicy
3131
3232const AZURE_MISTRAL_LEGACY_MODEL_NAMES = new Set ( [ 'mistral-ocr' , 'mistral-ocr-2503' ] )
3333
You can’t perform that action at this time.
0 commit comments