mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +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),
|
||||
}));
|
||||
|
||||
// Find default index
|
||||
const defaultIdx = catalog.models.findIndex((m) => m.id === catalog.defaultModel);
|
||||
// Find default index - use current model if configured, otherwise catalog default
|
||||
const currentModel = getCurrentModel(provider);
|
||||
const targetModel = currentModel || catalog.defaultModel;
|
||||
const defaultIdx = catalog.models.findIndex((m) => m.id === targetModel);
|
||||
const safeDefaultIdx = defaultIdx >= 0 ? defaultIdx : 0;
|
||||
|
||||
// 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)
|
||||
* 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 */
|
||||
export const CLIPROXY_VERSION = CLIPROXY_FALLBACK_VERSION;
|
||||
|
||||
Reference in New Issue
Block a user