Spaces:
Paused
Paused
Download scripts/scratch/test_gemini.mjs from igorkurgin/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/scripts/scratch/test_gemini.mjs
- Command line
-
hf download hf://spaces/igorkurgin/omniroute/scripts/scratch/test_gemini.mjs
-
curl -L -o test_gemini.mjs https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/scripts/scratch/test_gemini.mjs
369 Bytes
| 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)); | |