streaming, markdown, model selecting, and lots more
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user