MCPcopy
hub / github.com/simstudioai/sim / getMistralApiKey

Function getMistralApiKey

apps/sim/lib/knowledge/documents/document-processor.ts:266–275  ·  view source on GitHub ↗
(workspaceId?: string | null)

Source from the content-addressed store, hash-verified

264}
265
266async function getMistralApiKey(workspaceId?: string | null): Promise<string | null> {
267 if (workspaceId) {
268 const byokResult = await getBYOKKey(workspaceId, 'mistral')
269 if (byokResult) {
270 logger.info('Using workspace BYOK key for Mistral OCR')
271 return byokResult.apiKey
272 }
273 }
274 return env.MISTRAL_API_KEY || null
275}
276
277async function parseDocument(
278 fileUrl: string,

Callers 1

parseDocumentFunction · 0.85

Calls 2

getBYOKKeyFunction · 0.90
infoMethod · 0.80

Tested by

no test coverage detected