feat: configurable tool pricing, Sub2API channel, and alpha search billing

Add admin-configurable tool-call prices with cross-provider surcharge
settlement, Sub2API channel support, /v1/alpha/search relay, and usage-log
surcharge UI.
This commit is contained in:
CaIon
2026-07-26 20:05:15 +08:00
parent 3e1e728279
commit 2d23cdf291
65 changed files with 3210 additions and 431 deletions
+11
View File
@@ -26,6 +26,13 @@ For commercial licensing, please contact support@quantumnous.com
* - Size parameter: getLobeIcon("OpenAI", 20)
*/
import * as LobeIcons from '@lobehub/icons'
import type React from 'react'
import { IconSub2api } from '@/assets/custom/icon-sub2api'
const CUSTOM_ICONS: Record<string, React.ComponentType<{ size?: number }>> = {
Sub2API: IconSub2api,
}
/**
* Parse a property value from string to appropriate type
@@ -102,6 +109,10 @@ export function getLobeIcon(
// Parse component path and chained properties
const segments = trimmedName.split('.')
const baseKey = segments[0]
const CustomIcon = CUSTOM_ICONS[baseKey]
if (CustomIcon) {
return <CustomIcon size={size} />
}
const BaseIcon = (LobeIcons as Record<string, unknown>)[baseKey] as
| Record<string, unknown>
| undefined