feat(ai): add Jalapeno Cloud partner preset

This commit is contained in:
t8y2 committed 2026-09-01 18:07:16 +08:00
1 parent 19be194728
commit 6a7ea4ae95
16 files changed
+253 -47

No files matched your search

@@ -9,22 +9,23 @@ const props = defineProps<{
provider: AiProvider;
label: string;
iconSlug?: string;
iconPath?: string;
}>();
const failed = ref(false);
const { isDark } = useTheme();
watch(
() => props.iconSlug,
() => {
failed.value = false;
},
);
watch([() => props.iconSlug, () => props.iconPath], () => {
failed.value = false;
});
const usesWhiteDarkIcon = computed(
() => props.provider === "claude" || props.provider === "anthropic-compatible" || props.provider === "ollama" || props.provider === "openai" || props.provider === "openai-compatible" || props.provider === "opencode-cli" || props.provider === "cursor-cli" || props.provider === "grok-cli",
() =>
!props.iconPath &&
(props.provider === "claude" || props.provider === "anthropic-compatible" || props.provider === "ollama" || props.provider === "openai" || props.provider === "openai-compatible" || props.provider === "opencode-cli" || props.provider === "cursor-cli" || props.provider === "grok-cli"),
);
const localIconUrl = computed(() => {
if (props.iconPath) return webPath(props.iconPath);
if (props.provider === "openai-compatible") return webPath("/icons/ai/openai.svg");
return props.iconSlug ? webPath(`/icons/ai/${props.iconSlug}.svg`) : "";
});