mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 22:17:14 +00:00
fix(cliproxy): correct model selection default and update fallback version
- Fix --config showing wrong default star position by using current user model instead of catalog default when reconfiguring - Update CLIPROXY_FALLBACK_VERSION from 6.5.31 to 6.5.40
This commit is contained in:
@@ -94,8 +94,10 @@ export async function configureProviderModel(
|
|||||||
label: formatModelOption(m),
|
label: formatModelOption(m),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Find default index
|
// Find default index - use current model if configured, otherwise catalog default
|
||||||
const defaultIdx = catalog.models.findIndex((m) => m.id === catalog.defaultModel);
|
const currentModel = getCurrentModel(provider);
|
||||||
|
const targetModel = currentModel || catalog.defaultModel;
|
||||||
|
const defaultIdx = catalog.models.findIndex((m) => m.id === targetModel);
|
||||||
const safeDefaultIdx = defaultIdx >= 0 ? defaultIdx : 0;
|
const safeDefaultIdx = defaultIdx >= 0 ? defaultIdx : 0;
|
||||||
|
|
||||||
// Show header with context (gradient like ccs doctor)
|
// Show header with context (gradient like ccs doctor)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { PlatformInfo, SupportedOS, SupportedArch, ArchiveExtension } from './ty
|
|||||||
* CLIProxyAPI fallback version (used when GitHub API unavailable)
|
* CLIProxyAPI fallback version (used when GitHub API unavailable)
|
||||||
* Auto-update fetches latest from GitHub; this is only a safety net
|
* Auto-update fetches latest from GitHub; this is only a safety net
|
||||||
*/
|
*/
|
||||||
export const CLIPROXY_FALLBACK_VERSION = '6.5.31';
|
export const CLIPROXY_FALLBACK_VERSION = '6.5.40';
|
||||||
|
|
||||||
/** @deprecated Use CLIPROXY_FALLBACK_VERSION instead */
|
/** @deprecated Use CLIPROXY_FALLBACK_VERSION instead */
|
||||||
export const CLIPROXY_VERSION = CLIPROXY_FALLBACK_VERSION;
|
export const CLIPROXY_VERSION = CLIPROXY_FALLBACK_VERSION;
|
||||||
|
|||||||
Reference in New Issue
Block a user