mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-17 06:14:30 +00:00
fix(image-analysis): route original backend at CLIProxy root
Fixes #1703
This commit is contained in:
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}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user