mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-18 18:10:37 +08:00
feat: add new provider icons and improve provider source handling
- Added icons for 'modelstack', 'tokenpony', and 'compshare' in providerUtils.js. - Updated ProviderPage.vue to display the correct count of displayed provider sources. - Enhanced the logic for displaying provider sources to include placeholders for unselected templates. - Improved the display name for provider sources to show template keys for placeholders. - Adjusted styles for better layout and overflow handling in provider source list and cards. - Refactored source selection logic to handle placeholder sources correctly. - Updated error handling in provider testing to provide clearer messages.
This commit is contained in:
@@ -32,6 +32,9 @@ export function getProviderIcon(type) {
|
||||
'microsoft': 'https://registry.npmmirror.com/@lobehub/icons-static-svg/latest/files/icons/microsoft.svg',
|
||||
'vllm': 'https://registry.npmmirror.com/@lobehub/icons-static-svg/latest/files/icons/vllm.svg',
|
||||
'groq': 'https://registry.npmmirror.com/@lobehub/icons-static-svg/latest/files/icons/groq.svg',
|
||||
"modelstack": new URL('@/assets/images/provider_logos/modelstack.svg', import.meta.url).href,
|
||||
"tokenpony": "https://tokenpony.cn/tokenpony-web/logo.png",
|
||||
"compshare": "https://compshare.cn/favicon.ico"
|
||||
};
|
||||
return icons[type] || '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user