char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: Restructure repo to use `tools/ui` folder and `ui` / `UI` / `llama-ui` / `LLAMA_UI` naming (#23064)59778f019

char/aliceai-t5-moe
402 B10 linesraw
1/**
2 * Creates a base64 data URL from MIME type and base64-encoded data.
3 *
4 * @param mimeType - The MIME type (e.g., 'image/png', 'audio/mp3')
5 * @param base64Data - The base64-encoded data
6 * @returns A data URL string in format 'data:{mimeType};base64,{data}'
7 */
8export function createBase64DataUrl(mimeType: string, base64Data: string): string {
9	return `data:${mimeType};base64,${base64Data}`;
10}