MCPcopy Index your code
hub / github.com/Effect-TS/effect / getItemId

Function getItemId

packages/ai/openai/src/OpenAiLanguageModel.ts:1398–1402  ·  view source on GitHub ↗
(
  part:
    | Prompt.TextPart
    | Prompt.ToolCallPart
)

Source from the content-addressed store, hash-verified

1396 Predicate.isNotUndefined(config.fileIdPrefixes) && config.fileIdPrefixes.some((prefix) => data.startsWith(prefix))
1397
1398const getItemId = (
1399 part:
1400 | Prompt.TextPart
1401 | Prompt.ToolCallPart
1402): string | undefined => part.options.openai?.itemId
1403
1404const getImageDetail = (part: Prompt.FilePart): typeof Generated.ImageDetail.Encoded =>
1405 part.options.openai?.imageDetail ?? "auto"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected