feat: 增强 CLI 状态管理,支持从缓存加载状态并优化预加载服务

This commit is contained in:
catlog22
2026-01-12 22:22:21 +08:00
parent 65cb5beec4
commit ecaa011502
4 changed files with 45 additions and 4 deletions

View File

@@ -414,7 +414,7 @@ export async function handleCodexLensSemanticRoutes(ctx: RouteContext): Promise<
// Special handling for litellm backend - auto-configure from litellm-api-config
if (resolvedBackend === 'litellm' && (resolvedModelName || resolvedLiteLLMEndpoint)) {
const selectedModel = resolvedModelName || resolvedLiteLLMEndpoint;
const selectedModel = (resolvedModelName || resolvedLiteLLMEndpoint) as string;
// Find the provider that has this model
const providers = getAllProviders(initialPath);