mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-28 21:49:40 +02:00
refactor(anonymous-models): remove description field from anonymous model responses and update related UI components
This commit is contained in:
parent
576c56628a
commit
76843f42f1
5 changed files with 1 additions and 17 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 · No login required · Start typing below
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue