MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / blobFromInput

Function blobFromInput

packages/server-e2e/src/http.ts:470–478  ·  view source on GitHub ↗
(input: {
  data: UploadFileData;
  mediaType?: string;
})

Source from the content-addressed store, hash-verified

468}
469
470function blobFromInput(input: {
471 data: UploadFileData;
472 mediaType?: string;
473}): Blob {
474 if (input.data instanceof Blob) return input.data;
475 return new Blob([input.data], {
476 type: input.mediaType ?? 'application/octet-stream',
477 });
478}

Callers 1

uploadFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected