streaming, markdown, model selecting, and lots more

This commit is contained in:
Zoe
2026-02-02 23:16:06 -06:00
parent 8c28946703
commit d5a5945c03
114 changed files with 6109 additions and 2938 deletions
+20
View File
@@ -0,0 +1,20 @@
<script setup lang="ts">
import { getModelConfig } from '~/utils/model-mapping';
const props = defineProps<{
modelId: string;
variant?: 'monochrome' | 'color';
size?: string | number;
avatar?: boolean;
}>();
const config = computed(() => getModelConfig(props.modelId));
</script>
<template>
<div class="inline-flex items-center justify-center">
<component :is="config.icon" v-if="config.icon" :avatar="avatar" :size="size" :color="variant === 'color'" />
<!-- Fallback if no logo matches -->
<div v-else :style="{ width: `${props.size}px`, height: `${props.size}px` }" class="bg-gray-200 rounded-full" />
</div>
</template>