mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-05-05 17:56:56 +00:00
Stop shipping a default Gemini OAuth client secret and require it to come from the environment instead. Also tighten proxy fetch typing to avoid any-based undici calls and move db setup utilities under scripts while removing generated debug and scratch artifacts.
9 lines
369 B
JavaScript
9 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));
|