diff --git a/.env b/.env index d38a2ab3..1a6ec3d5 100644 --- a/.env +++ b/.env @@ -10,4 +10,5 @@ PUBLIC_FAVICON_URL=/icons/favicon.ico PUBLIC_BRAND_NAME=BotSharp PUBLIC_ADMIN_USERNAME=admin@gmail.com PUBLIC_ADMIN_PASSWORD=123456 -PUBLIC_COMPANY_NAME=SciSharp STACK \ No newline at end of file +PUBLIC_COMPANY_NAME=SciSharp STACK +PUBLIC_PLUGIN_DEFAULT_ICON=https://avatars.githubusercontent.com/u/44989469?s=200&v=4 \ No newline at end of file diff --git a/src/lib/helpers/types.js b/src/lib/helpers/types.js index 3b3f557e..c10d4c75 100644 --- a/src/lib/helpers/types.js +++ b/src/lib/helpers/types.js @@ -90,6 +90,7 @@ * @property {Date} created_datetime * @property {Date} updated_datetime * @property {AgentLlmConfig} llm_config - LLM settings. + * @property {PluginDefModel} plugin * @property {FunctionDef[]} functions * @property {AgentTemplate[]} templates * @property {Object[]} responses diff --git a/src/routes/page/agent/card-agent.svelte b/src/routes/page/agent/card-agent.svelte index 36640092..7dcd138c 100644 --- a/src/routes/page/agent/card-agent.svelte +++ b/src/routes/page/agent/card-agent.svelte @@ -28,6 +28,7 @@ {agent.name} +

Provided by {agent.plugin.name}

{agent.description}

{#if agent.is_router} diff --git a/src/routes/page/plugin/plugin-list.svelte b/src/routes/page/plugin/plugin-list.svelte index d61b099e..de26a09f 100644 --- a/src/routes/page/plugin/plugin-list.svelte +++ b/src/routes/page/plugin/plugin-list.svelte @@ -13,6 +13,7 @@ } from '@sveltestrap/sveltestrap'; import { enablePlugin, disablePlugin } from '$lib/services/plugin-service'; import { goto } from '$app/navigation'; + import { PUBLIC_PLUGIN_DEFAULT_ICON } from '$env/static/public'; /** @type {import('$types').PluginDefModel[]} */ export let plugins; @@ -42,7 +43,7 @@
- {item.name} + {item.name}
{item.name} plugin