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

Method getFileUrl

apps/kimi-web/src/api/daemon/client.ts:1229–1231  ·  view source on GitHub ↗
(fileId: string)

Source from the content-addressed store, hash-verified

1227 }
1228
1229 getFileUrl(fileId: string): string {
1230 return buildRestUrl(this.config.serverHttpUrl, `/files/${encodeURIComponent(fileId)}`);
1231 }
1232
1233 /** Fetch a file's bytes with the Bearer credential attached. Use this (not
1234 * getFileUrl) when the bytes feed a <video>/<img> src: the browser loads

Callers

nothing calls this directly

Calls 1

buildRestUrlFunction · 0.90

Tested by

no test coverage detected