MCPcopy Create free account
hub / github.com/Effect-TS/effect / isFileId

Function isFileId

packages/ai/openai/src/OpenAiLanguageModel.ts:1395–1396  ·  view source on GitHub ↗
(data: string, config: Config.Service)

Source from the content-addressed store, hash-verified

1393// =============================================================================
1394
1395const isFileId = (data: string, config: Config.Service): boolean =>
1396 Predicate.isNotUndefined(config.fileIdPrefixes) && config.fileIdPrefixes.some((prefix) => data.startsWith(prefix))
1397
1398const getItemId = (
1399 part:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…