File size: 982 Bytes
f6660c9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | // ูุฏุฑุงุช ูู ูู
ูุฐุฌ: ู
ุง ุงูุฃููุงุน ุงูุชู ููุจููุง ุงูุฑูุน ุฅููู.
// ุนุฏูู ูุฐุง ุงูู
ูู ููุท ูุชุบููุฑ ู
ุง ูุฏุนู
ู ูู ูู
ูุฐุฌ.
export const MODEL_CAPS = {
flash: {
vision: true, // ููุจู ุงูุตูุฑ ูุฑุคูุฉ
imageMimes: ["image/jpeg", "image/png", "image/webp", "image/gif"],
docExts: ["pdf", "docx", "txt", "md", "csv", "json", "js", "ts", "py", "html", "css", "java", "c", "cpp"],
},
pro: {
vision: false, // ูุง ููุจู ุงูุตูุฑ (ูุต ููุท)
imageMimes: [],
docExts: ["pdf", "docx", "txt", "md", "csv", "json", "js", "ts", "py", "html", "css", "java", "c", "cpp"],
},
};
// ุฃูุตู ุญุฌู
ููู
ูู (ุจุงูุช)
export const MAX_FILE_BYTES = 8 * 1024 * 1024; // 8MB
export function acceptString(model) {
const c = MODEL_CAPS[model] || MODEL_CAPS.flash;
const imgs = c.vision ? c.imageMimes : [];
const docs = c.docExts.map(e => "." + e);
return [...imgs, ...docs].join(",");
}
|