refactor(anonymous-models): remove description field from anonymous model responses and update related UI components

This commit is contained in:
Anish Sarkar 2026-06-13 16:30:26 +05:30
parent 576c56628a
commit 76843f42f1
5 changed files with 1 additions and 17 deletions

View file

@ -246,11 +246,6 @@ export default async function FreeHubPage() {
className="group flex flex-col gap-0.5"
>
<span className="font-medium group-hover:underline">{model.name}</span>
{model.description && (
<span className="text-xs text-muted-foreground line-clamp-1">
{model.description}
</span>
)}
</Link>
</TableCell>
<TableCell>

View file

@ -188,9 +188,6 @@ export function AnonymousChat({ model }: AnonymousChatProps) {
</div>
</div>
<h2 className="text-xl font-semibold mb-2">{model.name}</h2>
{model.description && (
<p className="text-sm text-muted-foreground max-w-md">{model.description}</p>
)}
<p className="text-xs text-muted-foreground mt-4">
Free to use &middot; No login required &middot; Start typing below
</p>

View file

@ -3,7 +3,6 @@ import { z } from "zod";
export const anonModel = z.object({
id: z.number(),
name: z.string(),
description: z.string().nullable().optional(),
provider: z.string(),
model_name: z.string(),
billing_tier: z.string().default("free"),