7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
feat(keys): custom endpoint groups with #group routing (#1176) (#1371)
suantea (asuan_suan)fbfb5e63202c
diff --git a/client/src/components/keys/custom-provider-section.tsx b/client/src/components/keys/custom-provider-section.tsxindex eb37f41a..717d10eb 100644--- a/client/src/components/keys/custom-provider-section.tsx+++ b/client/src/components/keys/custom-provider-section.tsx@@ -12,6 +12,7 @@ import { isHttpUrl } from '@/lib/validate'import { useI18n } from '@/i18n'import { toast } from '@/lib/toast'import { DiscoverModelsDialog } from './discover-models-dialog'+import { GroupLabelField } from './group-label-field'// Split a free-text model field on commas / newlines into a clean id list,// dropping blanks and duplicates so one endpoint can take several models. (#281)@@ -35,6 +36,8 @@ export function CustomProviderSection({ onAdded }: { onAdded?: () => void } = {}const [displayName, setDisplayName] = useState('')const [family, setFamily] = useState('')const [apiKey, setApiKey] = useState('')+ // Endpoint group (#1176); blank = the default Custom group.+ const [groupLabel, setGroupLabel] = useState('')// Chat models default tools on (modern OpenAI-compatible servers all emit tool// calls) and vision off; declare them here or flip them later per model. (#470)const [supportsTools, setSupportsTools] = useState(true)@@ -105,6 +108,7 @@ export function CustomProviderSection({ onAdded }: { onAdded?: () => void } = {}models,displayName: !multiple ? (displayName || undefined) : undefined,apiKey: apiKey || undefined,+ groupLabel: groupLabel.trim() || undefined,supportsTools,supportsVision,},@@ -244,6 +248,9 @@ export function CustomProviderSection({ onAdded }: { onAdded?: () => void } = {}className="w-[150px] font-mono text-xs"/></div>+ {customType === 'chat' && (+ <GroupLabelField value={groupLabel} onChange={setGroupLabel} className="w-[150px]" showHint={false} />+ )}<Button type="submit" size="sm" disabled={addCustom.isPending}>{addCustom.isPending ? t('keys.addingCustom') : addLabel}</Button>@@ -263,7 +270,7 @@ export function CustomProviderSection({ onAdded }: { onAdded?: () => void } = {}<DiscoverModelsDialogopen={discoverOpen}onOpenChange={setDiscoverOpen}- endpoint={{ baseUrl, apiKey: apiKey || undefined }}+ endpoint={{ baseUrl, apiKey: apiKey || undefined, groupLabel }}onRegistered={onAdded}/>)}diff --git a/client/src/components/keys/discover-models-dialog.tsx b/client/src/components/keys/discover-models-dialog.tsxindex 26d5d374..b26b7f5a 100644--- a/client/src/components/keys/discover-models-dialog.tsx+++ b/client/src/components/keys/discover-models-dialog.tsx@@ -49,6 +49,8 @@ export interface EndpointRef {keyId?: numberbaseUrl?: stringapiKey?: string+ /** Group to file a NEW endpoint under on register (#1176); blank leaves it. */+ groupLabel?: string}export function DiscoverModelsDialog({@@ -78,7 +80,7 @@ export function DiscoverModelsDialog({queryKey: ['custom-endpoint-models', builtin, endpoint.keyId ?? null, endpoint.baseUrl ?? null],queryFn: () => apiFetch('/api/keys/custom/discover-models', {method: 'POST',- body: JSON.stringify(endpoint),+ body: JSON.stringify({ keyId: endpoint.keyId, baseUrl: endpoint.baseUrl, apiKey: endpoint.apiKey }),}),retry: false,gcTime: 0,@@ -98,6 +100,7 @@ export function DiscoverModelsDialog({body: JSON.stringify({...(endpoint.keyId === undefined ? { baseUrl: endpoint.baseUrl } : { keyId: endpoint.keyId }),...(endpoint.apiKey ? { apiKey: endpoint.apiKey } : {}),+ ...(endpoint.groupLabel?.trim() ? { groupLabel: endpoint.groupLabel.trim() } : {}),models: [...selected],}),}),diff --git a/client/src/components/keys/edit-key-dialog.tsx b/client/src/components/keys/edit-key-dialog.tsxindex cc01a92d..8836aea0 100644--- a/client/src/components/keys/edit-key-dialog.tsx+++ b/client/src/components/keys/edit-key-dialog.tsx@@ -10,12 +10,14 @@ import { X } from 'lucide-react'import type { ApiKey } from '../../../../shared/types'import { useI18n } from '@/i18n'import { PLATFORMS } from './shared'+import { GroupLabelField } from './group-label-field'type UpdateBody = {label?: stringkey?: stringmonthlyRequestCap?: numbermonthlyTokenCap?: number+ groupLabel?: string}/** Parse a budget-cap input: blank or 0 means unlimited (0); otherwise a@@ -49,6 +51,9 @@ export function EditKeyDialog({const [apiKeyValue, setApiKeyValue] = useState('')const [accountId, setAccountId] = useState('')const [attempted, setAttempted] = useState(false)+ // Custom-endpoint group label (#1176): '' = the single legacy Custom group.+ const [groupLabel, setGroupLabel] = useState(apiKey.groupLabel ?? '')+ const isCustom = apiKey.platform === 'custom'// Monthly budget caps (#1158): editable here so the cap is settable from// the dashboard at all; it shipped API-only. Empty = unlimited.const [requestCap, setRequestCap] = useState(capToInput(apiKey.monthlyRequestCap))@@ -74,7 +79,8 @@ export function EditKeyDialog({const capError = requestCapValue === null || tokenCapValue === nullconst requestCapChanged = requestCapValue !== (apiKey.monthlyRequestCap || 0)const tokenCapChanged = tokenCapValue !== (apiKey.monthlyTokenCap || 0)- const hasChanges = label !== apiKey.label || Boolean(credential) || requestCapChanged || tokenCapChanged+ const groupLabelChanged = isCustom && groupLabel.trim() !== (apiKey.groupLabel ?? '')+ const hasChanges = label !== apiKey.label || Boolean(credential) || requestCapChanged || tokenCapChanged || groupLabelChangedconst updateKey = useMutation({mutationFn: (body: UpdateBody) =>@@ -97,6 +103,7 @@ export function EditKeyDialog({if (credential) body.key = credentialif (requestCapChanged && requestCapValue !== null) body.monthlyRequestCap = requestCapValueif (tokenCapChanged && tokenCapValue !== null) body.monthlyTokenCap = tokenCapValue+ if (groupLabelChanged) body.groupLabel = groupLabel.trim()if (Object.keys(body).length > 0) updateKey.mutate(body)else onOpenChange(false)}@@ -139,6 +146,8 @@ export function EditKeyDialog({</div>)}+ {isCustom && <GroupLabelField value={groupLabel} onChange={setGroupLabel} />}+<div className="space-y-1.5"><div className="flex items-center justify-between gap-2"><Label className="text-xs" htmlFor="edit-key-value">diff --git a/client/src/components/keys/group-label-field.tsx b/client/src/components/keys/group-label-field.tsxnew file mode 100644index 00000000..0b823138--- /dev/null+++ b/client/src/components/keys/group-label-field.tsx@@ -0,0 +1,51 @@+import { useId } from 'react'+import { useQuery } from '@tanstack/react-query'+import { apiFetch } from '@/lib/api'+import { Input } from '@/components/ui/input'+import { Label } from '@/components/ui/label'+import { useI18n } from '@/i18n'+import type { ApiKey } from '../../../../shared/types'+import { existingGroupLabels } from '@/lib/endpoint-groups'++// Free-text group for a custom endpoint (#1176), with the groups already in use+// offered as suggestions so a second endpoint joins "Work" instead of starting+// a "work" next to it. Blank = the default Custom group.+export function GroupLabelField({+ value,+ onChange,+ className,+ showHint = true,+}: {+ value: string+ onChange: (value: string) => void+ className?: string+ showHint?: boolean+}) {+ const { t } = useI18n()+ const id = useId()+ const { data: keys = [] } = useQuery<ApiKey[]>({+ queryKey: ['keys'],+ queryFn: () => apiFetch('/api/keys'),+ })+ const suggestions = existingGroupLabels(keys)+ return (+ <div className="space-y-1.5">+ {/* First, so the hidden list never takes the spacing after the input. */}+ <datalist id={`${id}-suggestions`}>+ {suggestions.map(label => <option key={label} value={label} />)}+ </datalist>+ <Label className="text-xs" htmlFor={id}>{t('keys.groupLabel')}</Label>+ <Input+ id={id}+ value={value}+ onChange={e => onChange(e.target.value)}+ placeholder={t('keys.groupLabelPlaceholder')}+ list={`${id}-suggestions`}+ maxLength={80}+ autoComplete="off"+ className={className}+ />+ {showHint && <p className="text-[11px] text-muted-foreground">{t('keys.groupLabelHint')}</p>}+ </div>+ )+}diff --git a/client/src/components/keys/provider-list.tsx b/client/src/components/keys/provider-list.tsxindex 8691f979..f56d7628 100644--- a/client/src/components/keys/provider-list.tsx+++ b/client/src/components/keys/provider-list.tsx@@ -23,6 +23,7 @@ import { formatSqliteUtcToLocalTime } from '@/lib/utils'import { useI18n } from '@/i18n'import { toast } from '@/lib/toast'import { keyMatchesQuery } from '@/lib/key-search'+import { copyText } from '@/lib/clipboard'import {PLATFORMS,CUSTOM_GROUP,@@ -42,9 +43,22 @@ import { EditModelsDialog } from './edit-models-dialog'import { ModelScopeDialog } from './model-scope-dialog'import { TestModelsDialog } from './test-models-dialog'import { AddModelDialog } from './add-model-dialog'+import { groupHandle } from '@/lib/endpoint-groups'type StatusFilter = 'all' | 'healthy' | 'issues' | 'disabled'+// One collapsible section of the Keys page: a platform, or one named group of+// custom endpoints (#1176), which is why `value` and `platform` can differ.+interface ProviderGroup {+ value: string+ label: string+ url: string+ platform: string+ /** Custom endpoints only: the group label, or null for the default group. */+ customGroup?: string | null+ keys: ApiKey[]+}+// #787: what the batch bar can do to the selected keys of one group.type BulkAction = 'enable' | 'disable' | 'delete'@@ -178,10 +192,11 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {})const togglePlatform = useMutation({- mutationFn: ({ platform, enabled }: { platform: string; enabled: boolean }) =>+ // `group` narrows a custom sweep to one endpoint group (#1176).+ mutationFn: ({ platform, enabled, group }: { platform: string; enabled: boolean; group?: string | null }) =>apiFetch(`/api/keys/platform/${platform}`, {method: 'PATCH',- body: JSON.stringify({ enabled }),+ body: JSON.stringify(group === undefined ? { enabled } : { enabled, group }),}),onSuccess: () => {queryClient.invalidateQueries({ queryKey: ['keys'] })@@ -250,6 +265,14 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {onSuccess: () => queryClient.invalidateQueries({ queryKey: ['proxy-url'] }),})+ function copyGroupHandle(label: string) {+ const handle = `#${groupHandle(label)}`+ void copyText(handle).then(ok => {+ if (ok) toast.success(t('keys.groupHandleCopied', { handle }))+ else toast.error(t('keys.groupHandleCopyFailed'))+ })+ }+function startEditing(key: ApiKey) {setEditingKeyId(key.id)}@@ -273,10 +296,29 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {// one that runs dry first and starts routing around the key.const balanceOf = balanceByKey(healthData?.quotaStates ?? [])- const grouped = [...PLATFORMS, CUSTOM_GROUP].map(p => ({- ...p,- keys: keys.filter(k => k.platform === p.value),- })).filter(p => p.keys.length > 0)+ // #1176: custom endpoints split into one group per operator-set groupLabel;+ // endpoints without one stay in the default "Custom" group, listed first,+ // then the named groups A→Z. `value` only keys the expand/collapse state, so+ // a named group's is prefixed and can never collide with a platform value;+ // `platform` and `customGroup` are what the group's actions send to the API+ // (null = the ungrouped endpoints).+ const customGroups = new Map<string, ProviderGroup>()+ for (const k of keys) {+ if (k.platform !== 'custom') continue+ const named = k.groupLabel?.trim() || null+ const value = named === null ? CUSTOM_GROUP.value : `custom|${named}`+ let group = customGroups.get(value)+ if (!group) {+ group = { value, label: named ?? CUSTOM_GROUP.label, url: CUSTOM_GROUP.url, platform: 'custom', customGroup: named, keys: [] }+ customGroups.set(value, group)+ }+ group.keys.push(k)+ }+ const grouped: ProviderGroup[] = [+ ...PLATFORMS.map(p => ({ ...p, platform: p.value, keys: keys.filter(k => k.platform === p.value) })),+ ...[...customGroups.values()].sort((a, b) =>+ a.customGroup === null ? -1 : b.customGroup === null ? 1 : a.label.localeCompare(b.label)),+ ].filter(p => p.keys.length > 0)const totalProviders = grouped.lengthconst totalKeys = grouped.reduce((n, g) => n + g.keys.length, 0)@@ -387,7 +429,7 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {<Switchchecked={group.keys.some(k => k.enabled)}onCheckedChange={(checked) =>- togglePlatform.mutate({ platform: group.value, enabled: checked })+ togglePlatform.mutate({ platform: group.platform, enabled: checked, group: group.customGroup })}disabled={togglePlatform.isPending}/>@@ -399,6 +441,13 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {><h3 className="text-sm font-medium">{group.label}</h3><Badge variant="secondary" className="tabular-nums">{group.keys.length}</Badge>+ {group.customGroup && (+ <Tooltip text={t('keys.groupHandleHint', { handle: groupHandle(group.customGroup) })}>+ <code className="rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] text-muted-foreground">+ #{groupHandle(group.customGroup)}+ </code>+ </Tooltip>+ )}<span className="inline-flex items-center gap-2 text-xs text-muted-foreground">{healthyCount > 0 && (<span className="inline-flex items-center gap-1">@@ -424,13 +473,19 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {<DropdownMenuContent align="end" className="w-52">{/* Test every model this provider serves, one real ping each(custom endpoints test per key from the row instead). */}- {group.value !== 'custom' && (- <DropdownMenuItem onClick={() => setTestTarget({ platform: group.value, label: group.label })}>+ {group.platform !== 'custom' && (+ <DropdownMenuItem onClick={() => setTestTarget({ platform: group.platform, label: group.label })}>{t('keys.testModels')}<FlaskConical className="ml-auto size-3.5" /></DropdownMenuItem>)}- <DropdownMenuItem onClick={() => setAddModelTarget({ platform: group.value })}>+ {group.customGroup && (+ <DropdownMenuItem onClick={() => copyGroupHandle(group.customGroup!)}>+ {t('keys.copyGroupHandle')}+ <Copy className="ml-auto size-3.5" />+ </DropdownMenuItem>+ )}+ <DropdownMenuItem onClick={() => setAddModelTarget({ platform: group.platform })}>{t('keys.addCustomModel')}<Sparkles className="ml-auto size-3.5" /></DropdownMenuItem>@@ -442,8 +497,8 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {)}{proxyEnabled && (<DropdownMenuCheckboxItem- checked={!bypassPlatforms.includes(group.value)}- onCheckedChange={() => toggleBypass.mutate(group.value)}+ checked={!bypassPlatforms.includes(group.platform)}+ onCheckedChange={() => toggleBypass.mutate(group.platform)}closeOnClick={false}>{t('keys.routeViaProxy')}diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex 0d123a11..a5026aa3 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -694,6 +694,14 @@"monthlyUsageLine": "በዚህ ወር {requests} ጥያቄዎች፣ {tokens} ቶከኖች","quotaBalanceHint": "ከ{limit} {metric} {remaining} ቀርቷል","quotaBalanceLeft": "{remaining} ቀርቷል"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "እንደገና ሞክር","offline": "የበይነመረብ ግንኙነትዎን ያረጋግጡና እንደገና ይሞክሩ።"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex 877a208f..ba9f91da 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} طلبًا، {tokens} رمز هذا الشهر","quotaBalanceHint": "متبقٍ {remaining} من {limit} {metric}","quotaBalanceLeft": "متبقٍ {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "أعد المحاولة","offline": "تحقّق من اتصالك بالإنترنت ثم أعد المحاولة."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex 6499e162..ea9099fe 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -694,6 +694,14 @@"monthlyUsageLine": "Bu ay {requests} sorğu, {tokens} token","quotaBalanceHint": "{limit} {metric} içindən {remaining} qalıb","quotaBalanceLeft": "{remaining} qalıb"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Yenidən cəhd et","offline": "İnternet bağlantınızı yoxlayın və yenidən cəhd edin."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 6c665c5f..23a8709e 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} заявки, {tokens} токени този месец","quotaBalanceHint": "Остават {remaining} от {limit} {metric}","quotaBalanceLeft": "Остават {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Опитай отново","offline": "Проверете интернет връзката си и опитайте отново."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex 84591375..cb71fe00 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -694,6 +694,14 @@"monthlyUsageLine": "এই মাসে {requests} অনুরোধ, {tokens} টোকেন","quotaBalanceHint": "{limit} {metric}-এর মধ্যে {remaining} বাকি","quotaBalanceLeft": "{remaining} বাকি"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "আবার চেষ্টা করুন","offline": "আপনার ইন্টারনেট সংযোগ দেখে আবার চেষ্টা করুন।"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex 65dae736..0d87be11 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} požadavků, {tokens} tokenů tento měsíc","quotaBalanceHint": "Zbývá {remaining} z {limit} {metric}","quotaBalanceLeft": "Zbývá {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Zkusit znovu","offline": "Zkontrolujte připojení k internetu a zkuste to znovu."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 9162d818..b94fd7f7 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} anmodninger, {tokens} tokens denne måned","quotaBalanceHint": "{remaining} af {limit} {metric} tilbage","quotaBalanceLeft": "{remaining} tilbage"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Prøv igen","offline": "Tjek din internetforbindelse, og prøv igen."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex 56b6ee59..bd2002a6 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} Anfragen, {tokens} Tokens diesen Monat","quotaBalanceHint": "{remaining} von {limit} {metric} übrig","quotaBalanceLeft": "{remaining} übrig"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Erneut versuchen","offline": "Prüfen Sie Ihre Internetverbindung und versuchen Sie es erneut."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex dea440bb..77bc1ba4 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} αιτήματα, {tokens} tokens αυτόν τον μήνα","quotaBalanceHint": "Απομένουν {remaining} από {limit} {metric}","quotaBalanceLeft": "Απομένουν {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Δοκιμάστε ξανά","offline": "Ελέγξτε τη σύνδεσή σας στο διαδίκτυο και δοκιμάστε ξανά."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 891e6700..b2510f52 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -484,6 +484,13 @@"customTypeAudio": "Audio","customTypeTranscription": "Transcription","customBaseUrl": "Base URL",+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard","customModels": "Models","customModel": "Model","customDisplayName": "Display name",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex b5e16dea..f8f8136c 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} solicitudes, {tokens} tokens este mes","quotaBalanceHint": "Quedan {remaining} de {limit} {metric}","quotaBalanceLeft": "Quedan {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Reintentar","offline": "Comprueba tu conexión a internet y vuelve a intentarlo."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex 085bd79b..0f92ab08 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} درخواست، {tokens} توکن در این ماه","quotaBalanceHint": "{remaining} از {limit} {metric} باقی مانده","quotaBalanceLeft": "{remaining} باقی مانده"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "دوباره تلاش کنید","offline": "اتصال اینترنت خود را بررسی کنید و دوباره تلاش کنید."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex fd5c51b1..dbf492dc 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} pyyntöä, {tokens} tokenia tässä kuussa","quotaBalanceHint": "{remaining}/{limit} {metric} jäljellä","quotaBalanceLeft": "{remaining} jäljellä"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Yritä uudelleen","offline": "Tarkista internetyhteys ja yritä uudelleen."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex 88bffbb5..2b961d7b 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} requêtes, {tokens} jetons ce mois","quotaBalanceHint": "{remaining} sur {limit} {metric} restants","quotaBalanceLeft": "{remaining} restants"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Sauvegardes",@@ -1220,4 +1228,4 @@"tryAgain": "Réessayer","offline": "Vérifiez votre connexion internet et réessayez."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 1ea2198f..e2428fd2 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -694,6 +694,14 @@"monthlyUsageLine": "આ મહિને {requests} વિનંતીઓ, {tokens} ટોકન","quotaBalanceHint": "{limit} {metric}માંથી {remaining} બાકી","quotaBalanceLeft": "{remaining} બાકી"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ફરી પ્રયાસ કરો","offline": "તમારું ઇન્ટરનેટ કનેક્શન તપાસો અને ફરી પ્રયાસ કરો."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex c545a99e..0f643d30 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -694,6 +694,14 @@"monthlyUsageLine": "Buƙatotu {requests}, token {tokens} wannan wata","quotaBalanceHint": "Saura {remaining} daga {limit} {metric}","quotaBalanceLeft": "Saura {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Sake gwadawa","offline": "Duba haɗin intanet ɗinka sannan ka sake gwadawa."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex c213a281..ffd4b19b 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} בקשות, {tokens} טוקנים החודש","quotaBalanceHint": "נותרו {remaining} מתוך {limit} {metric}","quotaBalanceLeft": "נותרו {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "נסו שוב","offline": "בדקו את החיבור לאינטרנט ונסו שוב."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex fe1fe1b6..d518fe7c 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -694,6 +694,14 @@"monthlyUsageLine": "इस माह {requests} अनुरोध, {tokens} टोकन","quotaBalanceHint": "{limit} {metric} में से {remaining} शेष","quotaBalanceLeft": "{remaining} शेष"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "फिर से कोशिश करें","offline": "अपना इंटरनेट कनेक्शन जाँचें और फिर से कोशिश करें।"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex 062ab0e0..c5c9c9cd 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} zahtjeva, {tokens} tokena ovaj mjesec","quotaBalanceHint": "Preostalo {remaining} od {limit} {metric}","quotaBalanceLeft": "Preostalo {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Pokušaj ponovno","offline": "Provjerite internetsku vezu i pokušajte ponovno."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex 78a1d7d0..d74f9c32 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} kérés, {tokens} token ebben a hónapban","quotaBalanceHint": "{limit} {metric} közül {remaining} maradt","quotaBalanceLeft": "{remaining} maradt"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Próbálja újra","offline": "Ellenőrizze az internetkapcsolatot, és próbálja újra."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex efae0949..b094e8a3 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} permintaan, {tokens} token bulan ini","quotaBalanceHint": "Tersisa {remaining} dari {limit} {metric}","quotaBalanceLeft": "Tersisa {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Coba lagi","offline": "Periksa koneksi internet Anda lalu coba lagi."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex fd774d3d..4fcd5839 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -694,6 +694,14 @@"monthlyUsageLine": "Arịrịọ {requests}, token {tokens} ọnwa a","quotaBalanceHint": "{remaining} n'ime {limit} {metric} fọdụrụ","quotaBalanceLeft": "{remaining} fọdụrụ"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Nwaa ọzọ","offline": "Lelee njikọ ịntanetị gị ma nwaa ọzọ."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 3b09d83c..0e7bf3da 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} richieste, {tokens} token questo mese","quotaBalanceHint": "Rimangono {remaining} di {limit} {metric}","quotaBalanceLeft": "Rimangono {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Riprova","offline": "Controlla la connessione a internet e riprova."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex f0c4a035..1993e66d 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -694,6 +694,14 @@"monthlyUsageLine": "今月 {requests} リクエスト、{tokens} トークン","quotaBalanceHint": "{limit} {metric}中 残り {remaining}","quotaBalanceLeft": "残り {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "再試行","offline": "インターネット接続を確認して、もう一度お試しください。"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex fe7e049c..407064f5 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ამ თვეში {requests} მოთხოვნა, {tokens} ტოკენი","quotaBalanceHint": "დარჩა {remaining} / {limit} {metric}","quotaBalanceLeft": "დარჩა {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ხელახლა ცდა","offline": "შეამოწმეთ ინტერნეტკავშირი და სცადეთ ხელახლა."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex e7a66744..8cdec71b 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ខែនេះ {requests} ស្នើសុំ {tokens} តូខិន","quotaBalanceHint": "នៅសល់ {remaining} ក្នុងចំណោម {limit} {metric}","quotaBalanceLeft": "នៅសល់ {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ព្យាយាមម្ដងទៀត","offline": "សូមពិនិត្យការតភ្ជាប់អ៊ីនធឺណិត ហើយព្យាយាមម្ដងទៀត។"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 9f810541..341451f5 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ಈ ತಿಂಗಳು {requests} ವಿನಂತಿಗಳು, {tokens} ಟೋಕನ್ಗಳು","quotaBalanceHint": "{limit} {metric} ಪೈಕಿ {remaining} ಉಳಿದಿದೆ","quotaBalanceLeft": "{remaining} ಉಳಿದಿದೆ"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ","offline": "ನಿಮ್ಮ ಇಂಟರ್ನೆಟ್ ಸಂಪರ್ಕ ಪರಿಶೀಲಿಸಿ ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex a9978dde..c401199b 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -694,6 +694,14 @@"monthlyUsageLine": "이번 달 요청 {requests}회, 토큰 {tokens}","quotaBalanceHint": "{limit} {metric} 중 {remaining} 남음","quotaBalanceLeft": "{remaining} 남음"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "다시 시도","offline": "인터넷 연결을 확인한 후 다시 시도하세요."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex d8a8e0b7..f24c4264 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} užklausos, {tokens} žetonai šį mėnesį","quotaBalanceHint": "Liko {remaining} iš {limit} {metric}","quotaBalanceLeft": "Liko {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Bandyti dar kartą","offline": "Patikrinkite interneto ryšį ir bandykite dar kartą."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex 33943cd8..90baf528 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ഈ മാസം {requests} അഭ്യർത്ഥനകൾ, {tokens} ടോക്കണുകൾ","quotaBalanceHint": "{limit} {metric}-ൽ {remaining} ശേഷിക്കുന്നു","quotaBalanceLeft": "{remaining} ശേഷിക്കുന്നു"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "വീണ്ടും ശ്രമിക്കുക","offline": "ഇന്റർനെറ്റ് കണക്ഷൻ പരിശോധിച്ച് വീണ്ടും ശ്രമിക്കുക."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex 4abb34a7..3bdc75c5 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -694,6 +694,14 @@"monthlyUsageLine": "या महिन्यात {requests} विनंत्या, {tokens} टोकन","quotaBalanceHint": "{limit} {metric} पैकी {remaining} बाकी","quotaBalanceLeft": "{remaining} बाकी"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "पुन्हा प्रयत्न करा","offline": "तुमचे इंटरनेट कनेक्शन तपासा आणि पुन्हा प्रयत्न करा."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex ab76fec9..d4d8bbfd 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} permintaan, {tokens} token bulan ini","quotaBalanceHint": "Baki {remaining} daripada {limit} {metric}","quotaBalanceLeft": "Baki {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Cuba lagi","offline": "Semak sambungan internet anda dan cuba lagi."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex d2fda22e..89915df8 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ယခုလ တောင်းဆိုမှု {requests}၊ တိုကင် {tokens}","quotaBalanceHint": "{limit} {metric} အနက် {remaining} ကျန်သည်","quotaBalanceLeft": "{remaining} ကျန်သည်"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ထပ်ကြိုးစားပါ","offline": "အင်တာနက်ချိတ်ဆက်မှုကို စစ်ဆေးပြီး ထပ်ကြိုးစားပါ။"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex f3fd4bb4..b384d1e9 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -694,6 +694,14 @@"monthlyUsageLine": "यस महिना {requests} अनुरोध, {tokens} टोकन","quotaBalanceHint": "{limit} {metric} मध्ये {remaining} बाँकी","quotaBalanceLeft": "{remaining} बाँकी"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "फेरि प्रयास गर्नुहोस्","offline": "आफ्नो इन्टरनेट जडान जाँच गरी फेरि प्रयास गर्नुहोस्।"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex 68ecfa00..1dd41f13 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} verzoeken, {tokens} tokens deze maand","quotaBalanceHint": "{remaining} van {limit} {metric} over","quotaBalanceLeft": "{remaining} over"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Opnieuw proberen","offline": "Controleer je internetverbinding en probeer het opnieuw."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex 52ec8663..f115f456 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} forespørsler, {tokens} tokens denne måneden","quotaBalanceHint": "{remaining} av {limit} {metric} igjen","quotaBalanceLeft": "{remaining} igjen"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Prøv igjen","offline": "Sjekk internettforbindelsen og prøv igjen."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex 0fe7020e..31551c91 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ଏହି ମାସରେ {requests} ଅନୁରୋଧ, {tokens} ଟୋକେନ୍","quotaBalanceHint": "{limit} {metric} ମଧ୍ୟରୁ {remaining} ବାକି","quotaBalanceLeft": "{remaining} ବାକି"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ପୁଣି ଚେଷ୍ଟା କରନ୍ତୁ","offline": "ଆପଣଙ୍କ ଇଣ୍ଟରନେଟ୍ ସଂଯୋଗ ଯାଞ୍ଚ କରି ପୁଣି ଚେଷ୍ଟା କରନ୍ତୁ।"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex f5001df3..8508fa1a 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ਇਸ ਮਹੀਨੇ {requests} ਬੇਨਤੀਆਂ, {tokens} ਟੋਕਨ","quotaBalanceHint": "{limit} {metric} ਵਿੱਚੋਂ {remaining} ਬਾਕੀ","quotaBalanceLeft": "{remaining} ਬਾਕੀ"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ","offline": "ਆਪਣਾ ਇੰਟਰਨੈੱਟ ਕਨੈਕਸ਼ਨ ਜਾਂਚੋ ਅਤੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex e35b625c..151c5d2b 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} żądań, {tokens} tokenów w tym miesiącu","quotaBalanceHint": "Pozostało {remaining} z {limit} {metric}","quotaBalanceLeft": "Pozostało {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Spróbuj ponownie","offline": "Sprawdź połączenie z internetem i spróbuj ponownie."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex d113e899..45cecb6e 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} solicitações, {tokens} tokens este mês","quotaBalanceHint": "Restam {remaining} de {limit} {metric}","quotaBalanceLeft": "Restam {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Tentar novamente","offline": "Verifique sua conexão com a internet e tente novamente."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 2b5f3899..c0964a61 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} pedidos, {tokens} tokens este mês","quotaBalanceHint": "Restam {remaining} de {limit} {metric}","quotaBalanceLeft": "Restam {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Tentar novamente","offline": "Verifique a sua ligação à internet e tente novamente."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex 10ffbd22..aaf792c6 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} cereri, {tokens} tokeni luna aceasta","quotaBalanceHint": "Au rămas {remaining} din {limit} {metric}","quotaBalanceLeft": "Au rămas {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Încearcă din nou","offline": "Verifică conexiunea la internet și încearcă din nou."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex 72ecd4f0..24600203 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} запросов, {tokens} токенов в этом месяце","quotaBalanceHint": "Осталось {remaining} из {limit} {metric}","quotaBalanceLeft": "Осталось {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Повторить","offline": "Проверьте подключение к интернету и повторите попытку."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 321fba89..d89aa7fe 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -694,6 +694,14 @@"monthlyUsageLine": "මෙම මාසය ඉල්ලීම් {requests}, ටෝකන් {tokens}","quotaBalanceHint": "{limit} {metric} න් {remaining} ඉතිරියි","quotaBalanceLeft": "{remaining} ඉතිරියි"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "නැවත උත්සාහ කරන්න","offline": "ඔබගේ අන්තර්ජාල සම්බන්ධතාවය පරීක්ෂා කර නැවත උත්සාහ කරන්න."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex 3cef96be..90420473 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} požiadaviek, {tokens} tokenov tento mesiac","quotaBalanceHint": "Zostáva {remaining} z {limit} {metric}","quotaBalanceLeft": "Zostáva {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Skúsiť znova","offline": "Skontrolujte pripojenie na internet a skúste to znova."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex a12c0a5d..6dc7a996 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} захтева, {tokens} токена овог месеца","quotaBalanceHint": "Преостало {remaining} од {limit} {metric}","quotaBalanceLeft": "Преостало {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Покушај поново","offline": "Проверите интернет везу и покушајте поново."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex b42da165..d31d2a79 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} förfrågningar, {tokens} tokens denna månad","quotaBalanceHint": "{remaining} av {limit} {metric} kvar","quotaBalanceLeft": "{remaining} kvar"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Försök igen","offline": "Kontrollera internetanslutningen och försök igen."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex b019c45e..8e0995f5 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -694,6 +694,14 @@"monthlyUsageLine": "Maombi {requests}, tokeni {tokens} mwezi huu","quotaBalanceHint": "Zimebaki {remaining} kati ya {limit} {metric}","quotaBalanceLeft": "Zimebaki {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Jaribu tena","offline": "Kagua muunganisho wako wa intaneti kisha ujaribu tena."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex e0b6968c..30a406d0 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -694,6 +694,14 @@"monthlyUsageLine": "இந்த மாதம் {requests} கோரிக்கைகள், {tokens} டோக்கன்கள்","quotaBalanceHint": "{limit} {metric}-இல் {remaining} மீதம்","quotaBalanceLeft": "{remaining} மீதம்"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "மீண்டும் முயல்க","offline": "இணைய இணைப்பைச் சரிபார்த்து மீண்டும் முயலவும்."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex 6ffee4d0..328dd41c 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -694,6 +694,14 @@"monthlyUsageLine": "ఈ నెల {requests} అభ్యర్థనలు, {tokens} టోకెన్లు","quotaBalanceHint": "{limit} {metric}లో {remaining} మిగిలింది","quotaBalanceLeft": "{remaining} మిగిలింది"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "మళ్లీ ప్రయత్నించండి","offline": "మీ ఇంటర్నెట్ కనెక్షన్ను తనిఖీ చేసి మళ్లీ ప్రయత్నించండి."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex 47edb5b2..0ca2bdd4 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -694,6 +694,14 @@"monthlyUsageLine": "เดือนนี้ {requests} คำขอ {tokens} โทเคน","quotaBalanceHint": "เหลือ {remaining} จาก {limit} {metric}","quotaBalanceLeft": "เหลือ {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "ลองอีกครั้ง","offline": "ตรวจสอบการเชื่อมต่ออินเทอร์เน็ตแล้วลองอีกครั้ง"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 45f2f5ac..dc17b795 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} kahilingan, {tokens} token ngayong buwan","quotaBalanceHint": "{remaining} sa {limit} {metric} ang natitira","quotaBalanceLeft": "{remaining} ang natitira"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Subukang muli","offline": "Tingnan ang iyong koneksyon sa internet at subukang muli."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex 803c4ee2..9abbd362 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -694,6 +694,14 @@"monthlyUsageLine": "Bu ay {requests} istek, {tokens} token","quotaBalanceHint": "{limit} {metric} içinden {remaining} kaldı","quotaBalanceLeft": "{remaining} kaldı"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Yedekler",@@ -1220,4 +1228,4 @@"tryAgain": "Tekrar dene","offline": "İnternet bağlantınızı kontrol edip tekrar deneyin."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex e90f56ba..eb81ca37 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} запитів, {tokens} токенів цього місяця","quotaBalanceHint": "Залишилося {remaining} з {limit} {metric}","quotaBalanceLeft": "Залишилося {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Спробувати ще раз","offline": "Перевірте підключення до інтернету й спробуйте ще раз."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex 79467dbc..8a1c7956 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -694,6 +694,14 @@"monthlyUsageLine": "اس مہینے {requests} درخواستیں، {tokens} ٹوکن","quotaBalanceHint": "{limit} {metric} میں سے {remaining} باقی","quotaBalanceLeft": "{remaining} باقی"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "دوبارہ کوشش کریں","offline": "اپنا انٹرنیٹ کنکشن چیک کریں اور دوبارہ کوشش کریں۔"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex 5532494c..2973ad9b 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -694,6 +694,14 @@"monthlyUsageLine": "Bu oy {requests} so‘rov, {tokens} token","quotaBalanceHint": "{limit} {metric} dan {remaining} qoldi","quotaBalanceLeft": "{remaining} qoldi"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Qayta urinish","offline": "Internet aloqangizni tekshirib, qayta urinib ko‘ring."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex 88229f13..a07c63d7 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} yêu cầu, {tokens} token tháng này","quotaBalanceHint": "Còn {remaining}/{limit} {metric}","quotaBalanceLeft": "Còn {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Thử lại","offline": "Kiểm tra kết nối internet rồi thử lại."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex 70d4a714..e03ed14d 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -694,6 +694,14 @@"monthlyUsageLine": "{requests} ìbéèrè, {tokens} token oṣù yìí","quotaBalanceHint": "{remaining} nínú {limit} {metric} ló kù","quotaBalanceLeft": "{remaining} ló kù"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "Gbìyànjú lẹ́ẹ̀kan sí i","offline": "Ṣàyẹ̀wò ìsopọ̀ íńtánẹ́ẹ̀tì rẹ kí o sì gbìyànjú lẹ́ẹ̀kan sí i."}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex c1cb7333..f9668ef6 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -694,6 +694,14 @@"monthlyUsageLine": "本月 {requests} 次请求,{tokens} tokens","quotaBalanceHint": "剩余 {remaining} / {limit} {metric}","quotaBalanceLeft": "剩余 {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "备份",@@ -1220,4 +1228,4 @@"tryAgain": "重试","offline": "请检查网络连接后重试。"}-}+}\ No newline at end of filediff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 6b194aee..0ec68bff 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -694,6 +694,14 @@"monthlyUsageLine": "本月 {requests} 次請求,{tokens} tokens","quotaBalanceHint": "剩餘 {remaining} / {limit} {metric}","quotaBalanceLeft": "剩餘 {remaining}"+,+ "groupLabel": "Group",+ "groupLabelPlaceholder": "e.g. Relays, Work…",+ "groupLabelHint": "Optional: endpoints in the same group are listed together, and a request can stay inside the group with custom:<model>#<group>. Leave blank for the default Custom group.",+ "groupHandleHint": "Add #{handle} after a model id to route only to this group, e.g. custom:<model>#{handle}",+ "copyGroupHandle": "Copy group handle",+ "groupHandleCopied": "Copied {handle}",+ "groupHandleCopyFailed": "Couldn't copy to the clipboard"},"backups": {"title": "Backups",@@ -1220,4 +1228,4 @@"tryAgain": "重試","offline": "請檢查網路連線後再試一次。"}-}+}\ No newline at end of filediff --git a/client/src/lib/endpoint-groups.ts b/client/src/lib/endpoint-groups.tsnew file mode 100644index 00000000..089de921--- /dev/null+++ b/client/src/lib/endpoint-groups.ts@@ -0,0 +1,25 @@+// Custom-endpoint groups (#1176): helpers shared by the Keys page components.+import type { ApiKey } from '../../../shared/types'++/** The labels already in use by custom endpoints, sorted, for suggestions. */+export function existingGroupLabels(keys: ApiKey[]): string[] {+ const labels = new Set<string>()+ for (const k of keys) {+ const label = k.platform === 'custom' ? k.groupLabel?.trim() : ''+ if (label) labels.add(label)+ }+ return [...labels].sort((a, b) => a.localeCompare(b))+}++/**+ * The typable handle a group answers to after `#` in a model id (#1176) —+ * mirrors the server's endpointHandle slug, so `My Relays` is `my-relays`.+ */+export function groupHandle(label: string): string {+ const slug = label+ .toLowerCase()+ .replace(/[^a-z0-9.]+/g, '-')+ .replace(/-+/g, '-')+ .replace(/^[-.]+|[-.]+$/g, '')+ return slug || 'endpoint'+}diff --git a/docs/en/providers/01-supported-platforms.md b/docs/en/providers/01-supported-platforms.mdindex d6c20f37..2df8c030 100644--- a/docs/en/providers/01-supported-platforms.md+++ b/docs/en/providers/01-supported-platforms.md@@ -60,6 +60,14 @@ Of the 43 built-in platforms, **10 use dedicated adapters** and **33 ride `OpenA| `aihorde` | AI Horde | Keyless (anonymous sentinel `0000000000`; registered key raises queue priority) | Native (`AIHordeProvider`) | Community volunteer workers via queue-based proxy: max_tokens >= 16, stop must be array, no tools, usage reported as kudos, 120s timeout, no upstream streaming (#345). || `custom` | Custom (OpenAI-compatible) | User-supplied base URL stored per `api_keys` row | OpenAI-compat built per key via `resolveProvider()` | Registered placeholder keeps `getProvider('custom')`/`hasProvider('custom')` well-behaved; 120s timeout for slow local runtimes (llama.cpp, vLLM, LM Studio) (#145). |+## Custom endpoint groups++Custom endpoints can be filed under a **group** you name (#1176): set it in the **Group** field when adding an endpoint, or later from **Edit key**. The group belongs to the endpoint, so every key in that endpoint's pool moves with it, and a key added later joins the same group. Blank means the default **Custom (OpenAI-compatible)** group.++- **Keys page** – each group gets its own section with a `#handle` badge (the label slugified: `Work relays` → `#work-relays`). The section's switch turns on or off only that group's endpoints.+- **Requests** – add the handle after a model id to keep a request inside the group: `custom:deepseek-v3.1#work-relays` (or `deepseek-v3.1#work-relays`) routes and fails over only across the group's endpoints that serve that model. An endpoint's own handle (`custom:deepseek-v3.1#relay-a.example.com-v1`) still pins a single endpoint and wins if a group has the same name.+- **API** – `GET /api/keys` returns `groupLabel`; `PATCH /api/keys/:id` and `POST /api/keys/custom` accept `groupLabel` (`""` clears it); `PATCH /api/keys/platform/custom` accepts `group` (a label, or `null` for the ungrouped endpoints) to narrow the on/off sweep.+## Related history- Moonshot direct integration and MiniMax direct were dropped in `migrateModelsV4` (paid-only / superseded by the OpenRouter route).diff --git a/docs/en/providers/CHANGELOG.md b/docs/en/providers/CHANGELOG.mdindex 7982f7d3..92bade3d 100644--- a/docs/en/providers/CHANGELOG.md+++ b/docs/en/providers/CHANGELOG.md@@ -6,6 +6,7 @@ Revision history for `docs/providers/`, listing the upstream commits that shaped| Commit | Date | Summary || --- | --- | --- |+| Unreleased | 2026-10-09 | Custom endpoint groups: per-endpoint group label, group-scoped switch, `custom:<model>#<group>` routing (#1176). || Unreleased | 2026-09-05 | Cooldown ceiling (`routing_cooldown_ceiling_ms`) and Router pressure "Clear all" (#952). || Unreleased | 2026-09-04 | Add AMD Radeon Cloud TokenFactory shared-model adapter and catalog-ready platform wiring. || Unreleased | 2026-09-01 | Add the native Sail Research background Responses adapter and catalog-ready platform wiring. |diff --git a/docs/zh-cn/providers/01-supported-platforms.md b/docs/zh-cn/providers/01-supported-platforms.mdindex c1647043..c819f535 100644--- a/docs/zh-cn/providers/01-supported-platforms.md+++ b/docs/zh-cn/providers/01-supported-platforms.md@@ -56,6 +56,14 @@| `aihorde` | AI Horde | 免密钥(匿名哨兵 `0000000000`;注册密钥可提升队列优先级) | 原生(`AIHordeProvider`) | 社区志愿算力经队列代理接入:max_tokens >= 16、stop 必须是数组、不支持工具、用量以 kudos 计、120s 超时、无上游流式(#345)。 || `custom` | 自定义(OpenAI 兼容) | 用户提供的 base URL 存于各 `api_keys` 行 | 经 `resolveProvider()` 按密钥构建的 OpenAI 兼容适配器 | 注册占位让 `getProvider('custom')`/`hasProvider('custom')` 行为良好;为缓慢的本地运行时(llama.cpp、vLLM、LM Studio)设 120s 超时(#145)。 |+## 自定义端点分组++自定义端点可以归入你命名的**分组**(#1176):添加端点时填写 **Group** 字段,或之后在**编辑密钥**中修改。分组属于端点本身,因此该端点密钥池中的所有密钥会一起移动,之后新增的密钥也会自动加入同一分组。留空即使用默认的 **Custom (OpenAI-compatible)** 分组。++- **Keys 页面**:每个分组单独成段,并显示 `#handle` 标记(标签的 slug 形式:`Work relays` → `#work-relays`)。分组开关只启用或停用该分组内的端点。+- **请求**:在模型 ID 后加上分组 handle,即可让请求只在该分组内路由:`custom:deepseek-v3.1#work-relays`(或 `deepseek-v3.1#work-relays`)只会在提供该模型的分组端点之间路由与故障转移。端点自己的 handle(`custom:deepseek-v3.1#relay-a.example.com-v1`)仍只指向单个端点,且与同名分组冲突时优先。+- **API**:`GET /api/keys` 返回 `groupLabel`;`PATCH /api/keys/:id` 与 `POST /api/keys/custom` 接受 `groupLabel`(`""` 表示清除);`PATCH /api/keys/platform/custom` 接受 `group`(分组名,或 `null` 表示未分组端点),只切换该范围内的端点。+## 相关历史- Moonshot 直连集成与 MiniMax 直连在 `migrateModelsV4` 中移除(仅付费 / 被 OpenRouter 路线取代)。diff --git a/docs/zh-cn/providers/CHANGELOG.md b/docs/zh-cn/providers/CHANGELOG.mdindex 2124753d..32b8fc66 100644--- a/docs/zh-cn/providers/CHANGELOG.md+++ b/docs/zh-cn/providers/CHANGELOG.md@@ -6,6 +6,7 @@| Commit | Date | Summary || --- | --- | --- |+| Unreleased | 2026-10-09 | 自定义端点分组:按端点的分组标签、分组开关、`custom:<model>#<group>` 路由(#1176)。 || `df1000a` | 2026-08-20 | Qianfan/Volcengine Ark/LongCat/iFlytek Spark (#936) — four Chinese domestic OpenAI-compat platforms. || `00268be` | 2026-08-18 | B.AI gateway (#918). || `fba4b3d` | 2026-08-15 | OrcaRouter (#896). |diff --git a/server/src/__tests__/db/migrate/roundtrip.test.ts b/server/src/__tests__/db/migrate/roundtrip.test.tsindex 13ee35a1..0c7725d3 100644--- a/server/src/__tests__/db/migrate/roundtrip.test.ts+++ b/server/src/__tests__/db/migrate/roundtrip.test.ts@@ -42,6 +42,7 @@ const KEY_MONTHLY_BUDGET_FILENAME = '20260904_000001_key_monthly_budget.ts';const REQUEST_MODEL_ATTRIBUTION_FILENAME = '20260913_000001_request_model_attribution.ts';const KEY_MONTHLY_USAGE_FILENAME = '20260914_000001_key_monthly_usage.ts';const QUOTA_SNAPSHOT_FRESHNESS_FILENAME = '20260915_000001_quota_snapshot_freshness.ts';+const CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME = '20260930_000001_custom_endpoint_group_label.ts';interface SchemaRow {type: string;@@ -130,6 +131,7 @@ describe('migration round trip', () => {REQUEST_MODEL_ATTRIBUTION_FILENAME,KEY_MONTHLY_USAGE_FILENAME,QUOTA_SNAPSHOT_FRESHNESS_FILENAME,+ CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME,]);} finally {db.close();diff --git a/server/src/__tests__/routes/custom-endpoint-groups.test.ts b/server/src/__tests__/routes/custom-endpoint-groups.test.tsnew file mode 100644index 00000000..b7f94b98--- /dev/null+++ b/server/src/__tests__/routes/custom-endpoint-groups.test.ts@@ -0,0 +1,243 @@+import { describe, it, expect, beforeEach, afterEach } from 'vitest';+import http from 'node:http';+import type { Express } from 'express';+import { createApp } from '../../app.js';+import { initDb, getDb, getUnifiedApiKey } from '../../db/index.js';+import { getModelGroups, resolveRequestedIdToMembers } from '../../services/model-groups.js';+import { groupHandle } from '../../lib/endpoint-scope.js';+import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';++// Endpoint groups (#1176). A custom endpoint can be filed under an operator-set+// group label. The label belongs to the endpoint (every key in its pool), sorts+// the Keys page, narrows the group's on/off switch, and lets a request pin a+// model to the group: `custom:<model>#<group>` fails over only inside it.++const SHARED_MODEL = 'deepseek-v3.1';++let dashToken = '';++async function request(app: Express, method: string, path: string, body?: unknown, auth?: string) {+ const server = app.listen(0, '127.0.0.1');+ if (!server.listening) await new Promise<void>(resolve => server.once('listening', () => resolve()));+ const addr = server.address() as any;+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, {+ method,+ headers: {+ 'Content-Type': 'application/json',+ ...(auth ? { Authorization: `Bearer ${auth}` } : isGatedApiPath(path) ? { Authorization: `Bearer ${dashToken}` } : {}),+ },+ ...(body === undefined ? {} : { body: JSON.stringify(body) }),+ });+ const data = await res.json().catch(() => null);+ server.close();+ return { status: res.status, body: data };+}++const post = (app: Express, path: string, body: unknown) => request(app, 'POST', path, body);+const get = (app: Express, path: string) => request(app, 'GET', path);+const patch = (app: Express, path: string, body: unknown) => request(app, 'PATCH', path, body);++function keysOf(baseUrl: string): { id: number; group_label: string | null; enabled: number }[] {+ return getDb().prepare(+ "SELECT id, group_label, enabled FROM api_keys WHERE platform = 'custom' AND base_url = ? ORDER BY id",+ ).all(baseUrl) as { id: number; group_label: string | null; enabled: number }[];+}++function modelRowOn(baseUrl: string, modelId = SHARED_MODEL): number {+ const row = getDb().prepare(+ "SELECT id FROM models WHERE platform = 'custom' AND model_id = ? AND endpoint_scope = ?",+ ).get(modelId, baseUrl) as { id: number } | undefined;+ if (!row) throw new Error(`no ${modelId} row on ${baseUrl}`);+ return row.id;+}++/** A tiny OpenAI-compatible upstream that answers with its own name. */+async function fakeRelay(name: string) {+ const hits: string[] = [];+ const server = http.createServer((req, res) => {+ let raw = '';+ req.on('data', c => { raw += c; });+ req.on('end', () => {+ hits.push(req.url ?? '');+ const model = (() => { try { return JSON.parse(raw).model; } catch { return SHARED_MODEL; } })();+ res.writeHead(200, { 'Content-Type': 'application/json' });+ res.end(JSON.stringify({+ id: `chatcmpl-${name}`,+ object: 'chat.completion',+ created: 0,+ model,+ choices: [{ index: 0, message: { role: 'assistant', content: `from ${name}` }, finish_reason: 'stop' }],+ usage: { prompt_tokens: 1, completion_tokens: 2, total_tokens: 3 },+ }));+ });+ });+ await new Promise<void>(resolve => server.listen(0, '127.0.0.1', resolve));+ const baseUrl = `http://127.0.0.1:${(server.address() as any).port}/v1`;+ return { baseUrl, hits, close: () => new Promise<void>(resolve => server.close(() => resolve())) };+}++describe('custom endpoint groups (#1176)', () => {+ let app: Express;+ const RELAY_A = 'http://127.0.0.1:18191/v1';+ const RELAY_B = 'http://127.0.0.1:18192/v1';++ beforeEach(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ getDb().prepare("DELETE FROM settings WHERE key = 'active_profile_id'").run();+ app = createApp();+ dashToken = mintDashboardToken();+ });++ describe('storing the group', () => {+ it('files a new endpoint under the group given on add, and lists it', async () => {+ const added = await post(app, '/api/keys/custom', {+ baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a', groupLabel: ' Work relays ',+ });+ expect(added.status).toBe(201);+ expect(keysOf(RELAY_A).map(k => k.group_label)).toEqual(['Work relays']);++ const list = await get(app, '/api/keys');+ const row = (list.body as any[]).find(k => k.baseUrl === RELAY_A);+ expect(row.groupLabel).toBe('Work relays');+ });++ it('leaves an endpoint in the default group when none is given', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a' });+ expect(keysOf(RELAY_A).map(k => k.group_label)).toEqual([null]);+ const list = await get(app, '/api/keys');+ expect((list.body as any[]).find(k => k.baseUrl === RELAY_A).groupLabel).toBeNull();+ });++ it('moves every key of the endpoint when one key is regrouped', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a1' });+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a2' });+ const [first] = keysOf(RELAY_A);++ const res = await patch(app, `/api/keys/${first!.id}`, { groupLabel: 'Work' });+ expect(res.status).toBe(200);+ expect(res.body.groupLabel).toBe('Work');+ expect(keysOf(RELAY_A).map(k => k.group_label)).toEqual(['Work', 'Work']);++ // '' moves the whole endpoint back to the default group.+ await patch(app, `/api/keys/${first!.id}`, { groupLabel: '' });+ expect(keysOf(RELAY_A).map(k => k.group_label)).toEqual([null, null]);+ });++ it('gives a key added to a grouped endpoint the same group', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a1', groupLabel: 'Work' });+ // Credential-only add (#702), no group in the submit.+ const res = await post(app, '/api/keys/custom', { baseUrl: RELAY_A, apiKey: 'key-a2' });+ expect(res.status).toBe(201);+ expect(keysOf(RELAY_A).map(k => k.group_label)).toEqual(['Work', 'Work']);+ });++ it('does not touch other endpoints', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a' });+ await post(app, '/api/keys/custom', { baseUrl: RELAY_B, model: SHARED_MODEL, apiKey: 'key-b' });+ await patch(app, `/api/keys/${keysOf(RELAY_A)[0]!.id}`, { groupLabel: 'Work' });+ expect(keysOf(RELAY_B).map(k => k.group_label)).toEqual([null]);+ });++ it('rejects a group on a built-in provider key', async () => {+ const added = await post(app, '/api/keys', { platform: 'groq', key: 'gsk_test_key_123456' });+ expect(added.status).toBeLessThan(300);+ const id = (getDb().prepare("SELECT id FROM api_keys WHERE platform = 'groq'").get() as { id: number }).id;+ const res = await patch(app, `/api/keys/${id}`, { groupLabel: 'Work' });+ expect(res.status).toBe(400);+ });+ });++ describe('group switch', () => {+ it('turns off only the named group, or only the ungrouped endpoints', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a', groupLabel: 'Work' });+ await post(app, '/api/keys/custom', { baseUrl: RELAY_B, model: SHARED_MODEL, apiKey: 'key-b' });++ const off = await patch(app, '/api/keys/platform/custom', { enabled: false, group: 'Work' });+ expect(off.status).toBe(200);+ expect(off.body.updatedKeys).toBe(1);+ expect(keysOf(RELAY_A).map(k => k.enabled)).toEqual([0]);+ expect(keysOf(RELAY_B).map(k => k.enabled)).toEqual([1]);++ await patch(app, '/api/keys/platform/custom', { enabled: false, group: null });+ expect(keysOf(RELAY_B).map(k => k.enabled)).toEqual([0]);++ // No group keeps the old whole-platform sweep.+ await patch(app, '/api/keys/platform/custom', { enabled: true });+ expect([...keysOf(RELAY_A), ...keysOf(RELAY_B)].map(k => k.enabled)).toEqual([1, 1]);+ });++ it('refuses a group on a built-in platform', async () => {+ const res = await patch(app, '/api/keys/platform/groq', { enabled: false, group: 'Work' });+ expect(res.status).toBe(400);+ });+ });++ describe('referring to a group in a model id', () => {+ it('resolves custom:<model>#<group> to the copies inside the group only', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a', groupLabel: 'My Relays' });+ await post(app, '/api/keys/custom', { baseUrl: RELAY_B, model: SHARED_MODEL, apiKey: 'key-b' });+ const groups = getModelGroups();++ expect(groupHandle('My Relays')).toBe('my-relays');+ expect(resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#my-relays`, groups)).toEqual([modelRowOn(RELAY_A)]);+ // The label as typed, and the bare model id, both work too.+ expect(resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#My Relays`, groups)).toEqual([modelRowOn(RELAY_A)]);+ expect(resolveRequestedIdToMembers(`${SHARED_MODEL}#my-relays`, groups)).toEqual([modelRowOn(RELAY_A)]);+ // Without a group the request still reaches both endpoints.+ expect(resolveRequestedIdToMembers(SHARED_MODEL, groups)?.sort()).toEqual([modelRowOn(RELAY_A), modelRowOn(RELAY_B)].sort());+ // An unknown group names nothing.+ expect(resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#nope`, groups)).toBeNull();+ });++ it('spans every endpoint in the group', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a', groupLabel: 'Work' });+ await post(app, '/api/keys/custom', { baseUrl: RELAY_B, model: SHARED_MODEL, apiKey: 'key-b', groupLabel: 'Work' });+ const ids = resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#work`, getModelGroups());+ expect(ids?.sort()).toEqual([modelRowOn(RELAY_A), modelRowOn(RELAY_B)].sort());+ });++ it('follows a regroup without a restart', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a', groupLabel: 'Work' });+ expect(resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#work`, getModelGroups())).not.toBeNull();+ await patch(app, `/api/keys/${keysOf(RELAY_A)[0]!.id}`, { groupLabel: 'Home' });+ expect(resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#work`, getModelGroups())).toBeNull();+ expect(resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#home`, getModelGroups())).toEqual([modelRowOn(RELAY_A)]);+ });++ it('prefers an endpoint handle over a group of the same name', async () => {+ await post(app, '/api/keys/custom', { baseUrl: RELAY_A, model: SHARED_MODEL, apiKey: 'key-a' });+ // Group B under a label that slugs to relay A's endpoint handle.+ await post(app, '/api/keys/custom', { baseUrl: RELAY_B, model: SHARED_MODEL, apiKey: 'key-b', groupLabel: '127.0.0.1-18191-v1' });+ expect(resolveRequestedIdToMembers(`custom:${SHARED_MODEL}#127.0.0.1-18191-v1`, getModelGroups()))+ .toEqual([modelRowOn(RELAY_A)]);+ });+ });++ describe('end to end', () => {+ const relays: Awaited<ReturnType<typeof fakeRelay>>[] = [];+ afterEach(async () => {+ await Promise.all(relays.splice(0).map(r => r.close()));+ });++ it('a chat request for custom:<model>#<group> is served by the group', async () => {+ const work = await fakeRelay('work');+ const home = await fakeRelay('home');+ relays.push(work, home);+ await post(app, '/api/keys/custom', { baseUrl: work.baseUrl, model: SHARED_MODEL, apiKey: 'key-w', groupLabel: 'Work' });+ await post(app, '/api/keys/custom', { baseUrl: home.baseUrl, model: SHARED_MODEL, apiKey: 'key-h', groupLabel: 'Home' });++ for (const [group, relay, other] of [['work', work, home], ['home', home, work]] as const) {+ const before = other.hits.length;+ const res = await request(app, 'POST', '/v1/chat/completions', {+ model: `custom:${SHARED_MODEL}#${group}`,+ messages: [{ role: 'user', content: 'hi' }],+ }, getUnifiedApiKey());+ expect(res.status).toBe(200);+ expect(res.body.choices[0].message.content).toBe(`from ${group}`);+ expect(relay.hits.length).toBeGreaterThan(0);+ expect(other.hits.length).toBe(before);+ }+ });+ });+});diff --git a/server/src/db/migrate/defaults.ts b/server/src/db/migrate/defaults.tsindex 82569d19..ec1b633f 100644--- a/server/src/db/migrate/defaults.ts+++ b/server/src/db/migrate/defaults.ts@@ -37,6 +37,7 @@ import * as keyMonthlyBudget from '../migrations/20260904_000001_key_monthly_budimport * as keyMonthlyUsage from '../migrations/20260914_000001_key_monthly_usage.js';import * as quotaSnapshotFreshness from '../migrations/20260915_000001_quota_snapshot_freshness.js';import * as requestModelAttribution from '../migrations/20260913_000001_request_model_attribution.js';+import * as customEndpointGroupLabel from '../migrations/20260930_000001_custom_endpoint_group_label.js';export interface MigrationModule {up(db: Db): void;@@ -84,6 +85,7 @@ export const MCP_ENABLED_DEFAULT_FILENAME = '20260903_000001_mcp_enabled_defaultexport const RESPONSE_CACHE_FILENAME = '20260903_000002_response_cache.ts';export const KEY_MONTHLY_BUDGET_FILENAME = '20260904_000001_key_monthly_budget.ts';export const REQUEST_MODEL_ATTRIBUTION_FILENAME = '20260913_000001_request_model_attribution.ts';+export const CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME = '20260930_000001_custom_endpoint_group_label.ts';export const KEY_MONTHLY_USAGE_FILENAME = '20260914_000001_key_monthly_usage.ts';export const QUOTA_SNAPSHOT_FRESHNESS_FILENAME = '20260915_000001_quota_snapshot_freshness.ts';@@ -126,4 +128,5 @@ export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: REQUEST_MODEL_ATTRIBUTION_FILENAME, module: requestModelAttribution },{ filename: KEY_MONTHLY_USAGE_FILENAME, module: keyMonthlyUsage },{ filename: QUOTA_SNAPSHOT_FRESHNESS_FILENAME, module: quotaSnapshotFreshness },+ { filename: CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME, module: customEndpointGroupLabel },];diff --git a/server/src/db/migrations/20260930_000001_custom_endpoint_group_label.ts b/server/src/db/migrations/20260930_000001_custom_endpoint_group_label.tsnew file mode 100644index 00000000..657b3ba3--- /dev/null+++ b/server/src/db/migrations/20260930_000001_custom_endpoint_group_label.ts@@ -0,0 +1,31 @@+// Migration: optional group label for custom endpoints (#1176)+// Created: 2026-09-30+//+// DOWN: reversible+//+// All custom endpoints used to render under the single "Custom" group, which+// becomes unwieldy once more than a few relays are configured (#1176). An+// operator-set group label splits that group in the dashboard; NULL keeps the+// legacy single "Custom" group, so nothing changes until a label is set.+//+// Guarded like the baseline's column adds: catalog-sync re-runs migrations+// over a live schema, so ALTERs must be idempotent.++import type { Db } from '../types.js';++function hasColumn(db: Db, table: string, column: string): boolean {+ const columns = db.prepare(`PRAGMA table_info(${table})`).all() as { name: string }[];+ return columns.some(col => col.name === column);+}++export function up(db: Db): void {+ if (!hasColumn(db, 'api_keys', 'group_label')) {+ db.prepare('ALTER TABLE api_keys ADD COLUMN group_label TEXT').run();+ }+}++export function down(db: Db): void {+ if (hasColumn(db, 'api_keys', 'group_label')) {+ db.prepare('ALTER TABLE api_keys DROP COLUMN group_label').run();+ }+}diff --git a/server/src/lib/endpoint-scope.ts b/server/src/lib/endpoint-scope.tsindex 8beb81ba..7db371c8 100644--- a/server/src/lib/endpoint-scope.ts+++ b/server/src/lib/endpoint-scope.ts@@ -107,3 +107,19 @@ export function endpointRefMatches(requested: string, endpointScope: string): bo// the same token.return endpointHandle(ref) === endpointHandle(endpointScope);}++/**+ * The typable handle for an endpoint GROUP (#1176) — the operator's label run+ * through the same slug as endpoint handles, so `My Relays` is `my-relays`.+ * Used after the separator: `custom:deepseek-v3.1#my-relays`.+ */+export function groupHandle(label: string): string {+ return endpointHandle(label);+}++/** Whether `requested` (after the separator) names the group `groupLabel`. */+export function groupRefMatches(requested: string, groupLabel: string | null | undefined): boolean {+ const ref = requested.trim();+ if (!ref || !groupLabel) return false;+ return endpointHandle(ref) === endpointHandle(groupLabel);+}diff --git a/server/src/routes/keys.ts b/server/src/routes/keys.tsindex 57fac161..b5fcd227 100644--- a/server/src/routes/keys.ts+++ b/server/src/routes/keys.ts@@ -13,7 +13,7 @@ import { assessProviderUrl } from '../lib/url-guard.js';import { verifyCredentials } from '../services/auth.js';import { getActiveCooldownsForKeys, clearCooldownsForKey } from '../services/ratelimit.js';import { getMonthlyBudgetCaps, getMonthlyUsage, nextMonthResetAt } from '../services/key-budget.js';-import { resolveCustomEndpointKey, customEndpointKeyIds, siblingEndpointKeyId, endpointHasCredential } from '../services/custom-endpoint.js';+import { resolveCustomEndpointKey, customEndpointKeyIds, siblingEndpointKeyId, endpointHasCredential, normalizeGroupLabel, setCustomEndpointGroup } from '../services/custom-endpoint.js';import { registerCustomModels, registerCustomChatModels } from '../services/custom-model-register.js';import { registerCustomMediaModel } from '../services/custom-media-register.js';import { discoverEndpointModels, probeEndpointModel, classifyModelId, ModelDiscoveryError } from '../services/model-discovery.js';@@ -99,10 +99,13 @@ const updateKeySchema = z.object({// Monthly budget caps (#1158): 0 clears the cap (unlimited).monthlyRequestCap: z.number().int().min(0).max(1_000_000_000).optional(),monthlyTokenCap: z.number().int().min(0).max(1_000_000_000_000).optional(),+ // Custom-endpoint group label (#1176): '' clears it back to the single+ // "Custom" group; absent leaves it unchanged. Applies to the whole endpoint.+ groupLabel: z.string().trim().max(80).optional(),// An absent credential leaves the encrypted key untouched.key: z.string().trim().min(1).optional(),-}).refine(data => data.enabled !== undefined || data.label !== undefined || data.modelScope !== undefined || data.proxyUrl !== undefined || data.key !== undefined || data.monthlyRequestCap !== undefined || data.monthlyTokenCap !== undefined, {- message: 'At least one of enabled, label, modelScope, proxyUrl, key, monthlyRequestCap or monthlyTokenCap must be provided',+}).refine(data => data.enabled !== undefined || data.label !== undefined || data.modelScope !== undefined || data.proxyUrl !== undefined || data.key !== undefined || data.monthlyRequestCap !== undefined || data.monthlyTokenCap !== undefined || data.groupLabel !== undefined, {+ message: 'At least one of enabled, label, modelScope, proxyUrl, key, monthlyRequestCap, monthlyTokenCap or groupLabel must be provided',});const importKeySchema = z.object({@@ -410,6 +413,9 @@ keysRouter.get('/', (_req: Request, res: Response) => {label: row.label,maskedKey,baseUrl: row.base_url ?? null,+ // Optional custom-endpoint group label (#1176); null = legacy single+ // "Custom" group.+ groupLabel: row.group_label ?? null,monthlyRequestCap: budgetCaps.requestCap,monthlyTokenCap: budgetCaps.tokenCap,monthlyUsage: {@@ -788,6 +794,9 @@ const customProviderSchema = z.object({// (object form) overrides them for that one model.supportsTools: z.boolean().optional(),supportsVision: z.boolean().optional(),+ // Endpoint group (#1176). Absent keeps the endpoint's current group; '' moves+ // it back to the single "Custom" group.+ groupLabel: z.string().trim().max(80).optional(),}).refine(d => d.baseUrl !== undefined || d.keyId !== undefined,{ message: 'baseUrl or keyId is required' },@@ -1302,6 +1311,7 @@ keysRouter.post('/custom', async (req: Request, res: Response) => {return;}const added = resolveCustomEndpointKey(db, baseUrl, providedKey, label, endpoint.keyId);+ if (parsed.data.groupLabel !== undefined) setCustomEndpointGroup(db, added.keyId, normalizeGroupLabel(parsed.data.groupLabel));res.status(added.created ? 201 : 200).json({success: true,keyId: added.keyId,@@ -1334,6 +1344,7 @@ keysRouter.post('/custom', async (req: Request, res: Response) => {const { keyId, storedKey, registered } = registerCustomModels(db, baseUrl, providedKey, label, endpoint.keyId ?? undefined, pureChatEntries,);+ if (parsed.data.groupLabel !== undefined) setCustomEndpointGroup(db, keyId, normalizeGroupLabel(parsed.data.groupLabel));const mediaRegistered: Array<{ modelDbId: number; model: string; modality: string; created: boolean }> = [];const perModelErrors: Array<{ model: string; error: string }> = [];@@ -1733,8 +1744,22 @@ keysRouter.patch('/platform/:platform', (req: Request, res: Response) => {return;}+ // #1176: custom endpoints split into named groups, and a group's switch must+ // reach only that group. `group` narrows the sweep: a label, or null for the+ // ungrouped "Custom" endpoints. Absent keeps the whole-platform sweep.+ const { group } = req.body;+ if (group !== undefined && (platform !== 'custom' || (group !== null && typeof group !== 'string'))) {+ res.status(400).json({ error: { message: 'group applies only to the custom platform and must be a string or null' } });+ return;+ }+const db = getDb();- const result = db.prepare('UPDATE api_keys SET enabled = ? WHERE platform = ?').run(enabled ? 1 : 0, platform);+ const groupLabel = group === undefined ? undefined : normalizeGroupLabel(group);+ const result = groupLabel === undefined+ ? db.prepare('UPDATE api_keys SET enabled = ? WHERE platform = ?').run(enabled ? 1 : 0, platform)+ : groupLabel === null+ ? db.prepare("UPDATE api_keys SET enabled = ? WHERE platform = 'custom' AND group_label IS NULL").run(enabled ? 1 : 0)+ : db.prepare("UPDATE api_keys SET enabled = ? WHERE platform = 'custom' AND group_label = ?").run(enabled ? 1 : 0, groupLabel);res.json({ success: true, enabled, updatedKeys: result.changes });});@@ -1753,7 +1778,7 @@ keysRouter.patch('/:id', (req: Request, res: Response) => {return;}- const { enabled, label, modelScope, proxyUrl, key, monthlyRequestCap, monthlyTokenCap } = parsed.data;+ const { enabled, label, modelScope, proxyUrl, key, monthlyRequestCap, monthlyTokenCap, groupLabel } = parsed.data;const updates: string[] = [];const values: (string | number | null)[] = [];let changedKey: string | undefined;@@ -1814,6 +1839,20 @@ keysRouter.patch('/:id', (req: Request, res: Response) => {updates.push('monthly_token_cap = ?');values.push(monthlyTokenCap);}+ // Custom-endpoint group label (#1176) is written below, across the+ // endpoint's whole key pool rather than this one row.+ const db = getDb();+ if (groupLabel !== undefined) {+ const row = db.prepare('SELECT platform FROM api_keys WHERE id = ?').get(id) as { platform: string } | undefined;+ if (!row) {+ res.status(404).json({ error: { message: 'Key not found' } });+ return;+ }+ if (row.platform !== 'custom') {+ res.status(400).json({ error: { message: 'groupLabel applies only to custom endpoints' } });+ return;+ }+ }// Deduped; an empty result stores NULL, which the router reads as "unscoped".const scopeIds = modelScope == null ? [] : [...new Set(modelScope)];if (modelScope !== undefined) {@@ -1823,14 +1862,15 @@ keysRouter.patch('/:id', (req: Request, res: Response) => {values.push(id);- const db = getDb();// Re-submitting the same key satisfies "something changed" but is a no-op;// it must not turn into an invalid UPDATE with an empty SET list.- const result = updates.length === 0- ? { changes: 1 }- : db.transaction(() =>- db.prepare(`UPDATE api_keys SET ${updates.join(', ')} WHERE id = ?`).run(...values),- )();+ const result = db.transaction(() => {+ const changes = updates.length === 0+ ? 1+ : db.prepare(`UPDATE api_keys SET ${updates.join(', ')} WHERE id = ?`).run(...values).changes;+ if (changes > 0 && groupLabel !== undefined) setCustomEndpointGroup(db, id, normalizeGroupLabel(groupLabel));+ return { changes };+ })();if (result.changes === 0) {res.status(404).json({ error: { message: 'Key not found' } });@@ -1845,5 +1885,6 @@ keysRouter.patch('/:id', (req: Request, res: Response) => {if (proxyUrl !== undefined) response.maskedProxyUrl = maskProxyUrl(proxyUrl);if (key !== undefined) response.maskedKey = maskKey(key);if (modelScope !== undefined) response.modelScope = scopeIds.length > 0 ? scopeIds : null;+ if (groupLabel !== undefined) response.groupLabel = normalizeGroupLabel(groupLabel);res.json(response);});diff --git a/server/src/services/custom-endpoint.ts b/server/src/services/custom-endpoint.tsindex 311028b5..15143808 100644--- a/server/src/services/custom-endpoint.ts+++ b/server/src/services/custom-endpoint.ts@@ -70,13 +70,52 @@ function defaultCustomEndpointLabel(baseUrl: string): string {function insertKey(db: Db, baseUrl: string, secret: string, label: string | undefined): ResolvedEndpointKey {const { encrypted, iv, authTag } = encrypt(secret);+ // A second credential joins the endpoint's group (#1176): the group names the+ // endpoint, not the row, so a new key must not land back in the "Custom" pile.const r = db.prepare(`- INSERT INTO api_keys (platform, label, encrypted_key, iv, auth_tag, status, enabled, base_url)- VALUES ('custom', ?, ?, ?, ?, 'unknown', 1, ?)- `).run(label ?? defaultCustomEndpointLabel(baseUrl), encrypted, iv, authTag, baseUrl);+ INSERT INTO api_keys (platform, label, encrypted_key, iv, auth_tag, status, enabled, base_url, group_label)+ VALUES ('custom', ?, ?, ?, ?, 'unknown', 1, ?, ?)+ `).run(label ?? defaultCustomEndpointLabel(baseUrl), encrypted, iv, authTag, baseUrl, customEndpointGroup(db, baseUrl));return { keyId: Number(r.lastInsertRowid), storedKey: secret, created: true };}+// ── Endpoint groups (#1176) ──────────────────────────────────────────────────+// An operator-chosen label that sorts custom endpoints into named groups on the+// Keys page AND lets a request pin a model to that group: `custom:<model>#<group>`+// routes across every endpoint in the group serving that model (see+// model-groups.ts). NULL is the legacy single "Custom" group.+//+// The label belongs to the ENDPOINT (base_url), like models do (#640): every key+// in an endpoint's pool carries the same value, so moving one key moves them all+// and a model can never sit in two groups at once.++/** Trim and collapse whitespace; blank means "no group" (null). */+export function normalizeGroupLabel(raw: string | null | undefined): string | null {+ const label = (raw ?? '').trim().replace(/\s+/g, ' ');+ return label || null;+}++/** The group an endpoint's keys carry, or null when it has none. */+export function customEndpointGroup(db: Db, baseUrl: string): string | null {+ const row = db.prepare(`+ SELECT group_label FROM api_keys+ WHERE platform = 'custom' AND base_url = ? AND group_label IS NOT NULL+ ORDER BY id LIMIT 1+ `).get(baseUrl) as { group_label: string } | undefined;+ return row?.group_label ?? null;+}++/**+ * Put the endpoint `keyId` belongs to into `label` (null = back to "Custom"),+ * across its whole key pool. Returns the number of key rows updated.+ */+export function setCustomEndpointGroup(db: Db, keyId: number, label: string | null): number {+ const ids = [...customEndpointKeyIds(db, keyId)];+ const placeholders = ids.map(() => '?').join(', ');+ return db.prepare(`UPDATE api_keys SET group_label = ? WHERE platform = 'custom' AND id IN (${placeholders})`)+ .run(label, ...ids).changes;+}+/*** Resolve the api_keys row a custom-endpoint registration should bind to,* creating or updating it as needed. Never destroys a stored credential:diff --git a/server/src/services/model-groups.ts b/server/src/services/model-groups.tsindex 6b8e61ad..0dd21fad 100644--- a/server/src/services/model-groups.ts+++ b/server/src/services/model-groups.ts@@ -18,6 +18,7 @@ import { getDb, getSetting, setSetting } from '../db/index.js';import {ENDPOINT_ID_SEPARATOR,endpointRefMatches,+ groupRefMatches,qualifiedModelMemberId,} from '../lib/endpoint-scope.js';@@ -56,6 +57,9 @@ export interface GroupableRow {// Which custom endpoint this row belongs to; '' (or absent) for every catalog// platform and for legacy un-scoped custom rows (#651).endpoint_scope?: string;+ // The operator's group label for that endpoint (#1176); null/absent when the+ // endpoint is in the plain "Custom" group or the row is not a custom one.+ endpoint_group?: string | null;}/**@@ -244,7 +248,11 @@ export function groupRows(rows: GroupableRow[], ov: UnifyOverrides): ModelGroup[* The ladder, most specific first:* 1. "custom:model_id#endpoint" → exactly that relay's copy (#651) — the only* form that can separate two endpoints offering the same model id. The- * endpoint part accepts the short handle or the endpoint URL itself;+ * endpoint part accepts the short handle or the endpoint URL itself.+ * It may also name an endpoint GROUP (#1176): "custom:model_id#my-relays"+ * (or the bare "model_id#my-relays") → every copy of that model on the+ * group's endpoints, so the router fails over inside the group only. An+ * endpoint match wins over a group of the same name;* 2. "platform:model_id" → that platform's copies. Normally exactly one row,* so this is unchanged (#580: naming the platform means "this provider's* copy", no failover to the rest of the group). Two relays sharing a model@@ -275,6 +283,13 @@ export function resolveRequestedIdToTieredMembers(requested: string, groups: Mod}}}+ const inGroup = groups.flatMap(g => g.members.filter(m =>+ m.platform === 'custom'+ && (memberId(m) === base || m.model_id === base)+ && groupRefMatches(endpointRef, m.endpoint_group)));+ if (inGroup.length > 0) {+ return inGroup.map(m => ({ modelDbId: m.model_db_id, tier: 'literal' as MatchTier }));+ }}// Exact "platform:model_id". Checked before the bare model_id scan; a bare@@ -370,14 +385,19 @@ export function getModelGroups(): ModelGroup[] {const db = getDb();const rows = db.prepare(`SELECT m.id as model_db_id, m.platform, m.model_id, m.display_name, m.intelligence_rank,- m.endpoint_scope+ m.endpoint_scope,+ (SELECT k.group_label FROM api_keys k+ WHERE m.platform = 'custom' AND m.endpoint_scope != ''+ AND k.platform = 'custom' AND rtrim(k.base_url, '/') = m.endpoint_scope+ AND k.group_label IS NOT NULL+ ORDER BY k.id LIMIT 1) AS endpoint_groupFROM models mORDER BY m.id`).all() as GroupableRow[];const overrides = getUnifyOverrides();let fingerprint = JSON.stringify(overrides);for (const r of rows) {- fingerprint += ` ${r.model_db_id}${r.platform}${r.model_id}${r.display_name}${r.intelligence_rank}${r.endpoint_scope ?? ''}`;+ fingerprint += ` ${r.model_db_id}${r.platform}${r.model_id}${r.display_name}${r.intelligence_rank}${r.endpoint_scope ?? ''}${r.endpoint_group ?? ''}`;}if (groupsCache?.fingerprint === fingerprint) return groupsCache.groups;const groups = groupRows(rows, overrides);diff --git a/shared/types.ts b/shared/types.tsindex dfb39b11..ced000e8 100644--- a/shared/types.ts+++ b/shared/types.ts@@ -320,6 +320,9 @@ export interface ApiKey {label: string;maskedKey: string;baseUrl: string | null;+ /** Optional custom-endpoint group label (#1176); null = legacy single+ * "Custom" group. Only set on platform='custom' rows. */+ groupLabel?: string | null;status: KeyStatus;enabled: boolean;/** This row is the anonymous sentinel of a key-optional platform: there is