MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / preProcessImageContent

Function preProcessImageContent

app/utils/chat.ts:96–103  ·  view source on GitHub ↗
(
  content: RequestMessage["content"],
)

Source from the content-addressed store, hash-verified

94}
95
96export async function preProcessImageContent(
97 content: RequestMessage["content"],
98) {
99 return preProcessImageContentBase(content, async (url) => ({
100 type: "image_url",
101 image_url: { url },
102 })) as Promise<MultimodalContent[] | string>;
103}
104
105export async function preProcessImageContentForAlibabaDashScope(
106 content: RequestMessage["content"],

Callers 8

chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90

Calls 1

Tested by

no test coverage detected