mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
10 lines
369 B
JavaScript
10 lines
369 B
JavaScript
import { convertOpenAIContentToParts } from "./open-sse/translator/helpers/geminiHelper.ts";
|
|
|
|
const cherryMsg = [
|
|
{ type: "text", text: "What runs on this?" },
|
|
{ type: "file", file: { data: "ABCDEFG", type: "application/pdf" } },
|
|
{ type: "file", file_url: { url: "data:application/pdf;base64,ABCDEFG" } },
|
|
];
|
|
|
|
console.log(convertOpenAIContentToParts(cherryMsg));
|