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

Function isFileId

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

Source from the content-addressed store, hash-verified

1397// =============================================================================
1398
1399const isFileId = (data: string, config: Config.Service): boolean =>
1400 Predicate.isNotUndefined(config.fileIdPrefixes) && config.fileIdPrefixes.some((prefix) => data.startsWith(prefix))
1401
1402const getItemId = (
1403 part:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected