claudish 4.6.2 → 4.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -43
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31026,7 +31026,7 @@ async function fetchLiteLLMModels(baseUrl, apiKey) {
31026
31026
  } catch {}
31027
31027
  }
31028
31028
  try {
31029
- const url2 = `${baseUrl.replace(/\/$/, "")}/public/model_hub`;
31029
+ const url2 = `${baseUrl.replace(/\/$/, "")}/model_group/info`;
31030
31030
  const response = await fetch(url2, {
31031
31031
  headers: {
31032
31032
  Authorization: `Bearer ${apiKey}`
@@ -31045,7 +31045,8 @@ async function fetchLiteLLMModels(baseUrl, apiKey) {
31045
31045
  }
31046
31046
  return [];
31047
31047
  }
31048
- const rawModels = await response.json();
31048
+ const responseData = await response.json();
31049
+ const rawModels = responseData.data || responseData;
31049
31050
  const transformedModels = rawModels.filter((m) => m.mode === "chat" && m.supports_function_calling).map((m) => {
31050
31051
  const inputCostPerM = (m.input_cost_per_token || 0) * 1e6;
31051
31052
  const outputCostPerM = (m.output_cost_per_token || 0) * 1e6;
@@ -33294,45 +33295,6 @@ function resolveModelProvider(modelId) {
33294
33295
  description: `${provider.name} API Key`,
33295
33296
  url: ""
33296
33297
  };
33297
- if (isApiKeyAvailable(info)) {
33298
- const providerDisplayName2 = PROVIDER_DISPLAY_NAMES[provider.name] || provider.name.charAt(0).toUpperCase() + provider.name.slice(1);
33299
- return addCommonFields({
33300
- category: "direct-api",
33301
- providerName: providerDisplayName2,
33302
- modelName: remoteResolved.modelName,
33303
- fullModelId: modelId,
33304
- requiredApiKeyEnvVar: info.envVar || null,
33305
- apiKeyAvailable: isApiKeyAvailable(info),
33306
- apiKeyDescription: info.envVar ? info.description : null,
33307
- apiKeyUrl: info.envVar ? info.url : null
33308
- });
33309
- }
33310
- if (isApiKeyAvailable(API_KEY_INFO.openrouter)) {
33311
- const orInfo = API_KEY_INFO.openrouter;
33312
- return addCommonFields({
33313
- category: "openrouter",
33314
- providerName: "OpenRouter (fallback)",
33315
- modelName: modelId,
33316
- fullModelId: modelId,
33317
- requiredApiKeyEnvVar: orInfo.envVar,
33318
- apiKeyAvailable: true,
33319
- apiKeyDescription: orInfo.description,
33320
- apiKeyUrl: orInfo.url
33321
- });
33322
- }
33323
- if (isApiKeyAvailable(API_KEY_INFO.vertex)) {
33324
- const vertexInfo = API_KEY_INFO.vertex;
33325
- return addCommonFields({
33326
- category: "direct-api",
33327
- providerName: "Vertex AI (fallback)",
33328
- modelName: modelId,
33329
- fullModelId: modelId,
33330
- requiredApiKeyEnvVar: vertexInfo.envVar,
33331
- apiKeyAvailable: true,
33332
- apiKeyDescription: vertexInfo.description,
33333
- apiKeyUrl: vertexInfo.url
33334
- });
33335
- }
33336
33298
  const providerDisplayName = PROVIDER_DISPLAY_NAMES[provider.name] || provider.name.charAt(0).toUpperCase() + provider.name.slice(1);
33337
33299
  return addCommonFields({
33338
33300
  category: "direct-api",
@@ -33340,7 +33302,7 @@ function resolveModelProvider(modelId) {
33340
33302
  modelName: remoteResolved.modelName,
33341
33303
  fullModelId: modelId,
33342
33304
  requiredApiKeyEnvVar: info.envVar || null,
33343
- apiKeyAvailable: false,
33305
+ apiKeyAvailable: isApiKeyAvailable(info),
33344
33306
  apiKeyDescription: info.envVar ? info.description : null,
33345
33307
  apiKeyUrl: info.envVar ? info.url : null
33346
33308
  });
@@ -34834,7 +34796,7 @@ async function fetchGLMCodingModels2() {
34834
34796
  return [];
34835
34797
  }
34836
34798
  }
34837
- var __filename5, __dirname5, VERSION = "4.6.2", CACHE_MAX_AGE_DAYS3 = 2, MODELS_JSON_PATH, CLAUDISH_CACHE_DIR3, ALL_MODELS_JSON_PATH2;
34799
+ var __filename5, __dirname5, VERSION = "4.6.3", CACHE_MAX_AGE_DAYS3 = 2, MODELS_JSON_PATH, CLAUDISH_CACHE_DIR3, ALL_MODELS_JSON_PATH2;
34838
34800
  var init_cli = __esm(() => {
34839
34801
  init_config();
34840
34802
  init_model_loader();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "4.6.2",
3
+ "version": "4.6.3",
4
4
  "description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",