Feat: Centralized app/model config

This commit is contained in:
2026-03-20 20:59:05 -07:00
parent 248b45bb7c
commit 2532a38b9f

39
assets/js/config.js Normal file
View File

@@ -0,0 +1,39 @@
export const STORAGE_KEYS = {
apiKey: "vibegif_openrouter_api_key",
};
export const MASTER_PROMPT =
"minimal black and white line doodle, single stroke, white background, kawaii style";
export const NEXT_FRAME_PROMPT_TEMPLATE = (frameCount) =>
`imagine we are trying to create a ${frameCount} frame gif. generate the next meaningful frame`;
export const MODELS = [
{
id: "google/gemini-3.1-flash-image-preview",
label: "google/gemini-3.1-flash-image-preview",
supportsHalfK: true,
supportsExtendedAspectRatios: true,
},
{
id: "bytedance-seed/seedream-4.5",
label: "bytedance-seed/seedream-4.5",
supportsHalfK: false,
supportsExtendedAspectRatios: false,
},
];
export const BASE_ASPECT_RATIOS = [
"1:1",
"2:3",
"3:2",
"3:4",
"4:3",
"4:5",
"5:4",
"9:16",
"16:9",
"21:9",
];
export const GEMINI_EXTRA_ASPECT_RATIOS = ["1:4", "4:1", "1:8", "8:1"];