fix(image-analysis): route original backend at CLIProxy root

Fixes #1703
This commit is contained in:
Tam Nhu Tran committed 2026-08-19 16:43:15 -04:00
1 parent 3997dbd258
commit afa663b5b2
4 files changed
+231 -1

No files matched your search

@@ -8,6 +8,7 @@ import {
mapExternalProviderName,
} from '../../cliproxy/provider-capabilities';
import { getProviderCatalog, supportsNativeImageInput } from '../../cliproxy/model-catalog';
import { buildCliproxyProviderPath } from '../../cliproxy/config/provider-route';
import { extractProviderFromPathname } from '../../cliproxy/ai-providers/model-id-normalizer';
import type { CliproxyBridgeMetadata } from '../../api/services/profile-types';
import type { Settings } from '../../types/config';
@@ -251,6 +252,12 @@ function getRuntimePath(backendId: string | null): string | null {
return null;
}
if (isCLIProxyProvider(backendId)) {
// Claude-compatible traffic and the original backend route at the
// CLIProxy root; /api/provider/<id> scoped routes are Plus-only.
return buildCliproxyProviderPath(backendId) || null;
}
return `/api/provider/${backendId}`;
}