Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

2.4 KB
Raw Blame
<script lang="ts">
	import { talkingHeadAvatarUrl } from './stores.js';
	import AvatarIcon from './AvatarIcon.svelte';

	
	interface Props {
		model: any;
		size?: string;
		rounded?: any;
		/** Live-animated walking avatar. Set false for dense lists (dropdown rows), which uses a still frame. */
		live?: boolean;
	}

	let {
		model,
		size = 'h-7 w-7',
		rounded = null,
		live = true
	}: Props = $props();

	// Remember to update hasCompanyLogo from convo.js when adding new logos.
	const base = import.meta.env.BASE_URL;
</script>

{#if $talkingHeadAvatarUrl}
	<span class="{size} {rounded || 'rounded-sm'} overflow-hidden inline-block shrink-0">
		<AvatarIcon avatarUrl={$talkingHeadAvatarUrl} {live} />
	</span>
{:else if model && model.provider}
	{#if model.provider === 'OpenAI' || model.id.startsWith('openai')}
		<img src="{base}logos/openai.ico" loading="lazy" aria-hidden="true" class="{size} {rounded || 'rounded-sm'}" alt="" />
	{:else if model.provider === 'Anthropic' || model.id.startsWith('anthropic')}
		<img
			src="{base}logos/anthropic.jpeg"
			loading="lazy"
			aria-hidden="true"
			class="{size} {rounded || 'rounded-sm'}"
			alt=""
		/>
	{:else if model.id.startsWith('meta-llama')}
		<img src="{base}logos/meta.png" loading="lazy" aria-hidden="true" class={size} alt="" />
	{:else if model.provider === 'Mistral' || model.id.startsWith('mistralai')}
		<img src="{base}logos/mistral.png" loading="lazy" aria-hidden="true" class={size} alt="" />
	{:else if model.id.startsWith('cohere')}
		<img src="{base}logos/cohere.png" loading="lazy" aria-hidden="true" class={size} alt="" />
	{:else if model.provider === 'Groq'}
		<img src="{base}logos/groq.png" loading="lazy" aria-hidden="true" class="{size} {rounded || 'rounded-sm'}" alt="" />
	{:else if model.id.startsWith('nous')}
		<img src="{base}logos/nous.png" loading="lazy" aria-hidden="true" class={size} alt="" />
	{:else if model.id.startsWith('google')}
		<img src="{base}logos/google.png" loading="lazy" aria-hidden="true" class={size} alt="" />
	{:else if model.id.startsWith('perplexity')}
		<img
			src="{base}logos/perplexity.svg"
			loading="lazy"
			aria-hidden="true"
			class="{size} {rounded || 'rounded-sm'}"
			alt=""
		/>
	{:else if model.id.startsWith('deepseek')}
		<img src="{base}logos/deepseek.ico" loading="lazy" aria-hidden="true" class={size} alt="" />
	{:else if model.id.startsWith('qwen')}
		<img src="{base}logos/qwen.svg" loading="lazy" aria-hidden="true" class={size} alt="" />
	{/if}
{/if}