mirror of
https://github.com/open-webui/open-webui
synced 2025-02-06 21:19:57 +00:00
refac
This commit is contained in:
parent
9108df177c
commit
bf5775e07a
@ -55,6 +55,7 @@ class FunctionModel(BaseModel):
|
|||||||
class FunctionResponse(BaseModel):
|
class FunctionResponse(BaseModel):
|
||||||
id: str
|
id: str
|
||||||
user_id: str
|
user_id: str
|
||||||
|
type: str
|
||||||
name: str
|
name: str
|
||||||
meta: FunctionMeta
|
meta: FunctionMeta
|
||||||
updated_at: int # timestamp in epoch
|
updated_at: int # timestamp in epoch
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
toast.error(error);
|
toast.error(error);
|
||||||
return [];
|
return [];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(functions);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -107,15 +109,25 @@
|
|||||||
href={`/workspace/functions/edit?id=${encodeURIComponent(func.id)}`}
|
href={`/workspace/functions/edit?id=${encodeURIComponent(func.id)}`}
|
||||||
class="flex items-center text-left"
|
class="flex items-center text-left"
|
||||||
>
|
>
|
||||||
<div class=" flex-1 self-center pl-5">
|
<div class=" flex-1 self-center pl-1">
|
||||||
<div class=" font-semibold flex items-center gap-1.5">
|
<div class=" font-semibold flex items-center gap-1.5">
|
||||||
|
<div
|
||||||
|
class=" text-xs font-black px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
|
||||||
|
>
|
||||||
|
{func.type}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{func.name}
|
{func.name}
|
||||||
</div>
|
</div>
|
||||||
<div class=" text-gray-500 text-xs font-medium">{func.id}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
|
|
||||||
{func.meta.description}
|
<div class="flex gap-1.5 px-1">
|
||||||
|
<div class=" text-gray-500 text-xs font-medium">{func.id}</div>
|
||||||
|
|
||||||
|
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
|
||||||
|
{func.meta.description}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user