Skip to content

Commit ad93d76

Browse files
committed
fix(knowledge): retain OCR policy literals
1 parent 0d23057 commit ad93d76

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

apps/sim/lib/knowledge/documents/ocr-request-policy.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

3232
const AZURE_MISTRAL_LEGACY_MODEL_NAMES = new Set(['mistral-ocr', 'mistral-ocr-2503'])
3333

0 commit comments

Comments
 (0)