MCPcopy Index your code
hub / github.com/anomalyco/opencode / unsupportedContent

Function unsupportedContent

packages/llm/src/protocols/shared.ts:296–300  ·  view source on GitHub ↗
(
  route: string,
  role: LLMRequest["messages"][number]["role"],
  types: ReadonlyArray<ContentType>,
)

Source from the content-addressed store, hash-verified

294): part is Extract<ContentPart, { readonly type: Type }> => (types as ReadonlyArray<ContentType>).includes(part.type)
295
296export const unsupportedContent = (
297 route: string,
298 role: LLMRequest["messages"][number]["role"],
299 types: ReadonlyArray<ContentType>,
300) => invalidRequest(`${route} ${role} messages only support ${formatContentTypes(types)} content for now`)
301
302/**
303 * Build a `validate` step from a Schema decoder. Replaces the per-route

Callers 1

shared.tsFile · 0.85

Calls 2

invalidRequestFunction · 0.85
formatContentTypesFunction · 0.85

Tested by

no test coverage detected