claudish 5.6.0 → 5.6.1

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 +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29435,6 +29435,7 @@ var getRemoteProviders = () => [
29435
29435
  apiPath: "/anthropic/v1/messages",
29436
29436
  apiKeyEnvVar: "MINIMAX_API_KEY",
29437
29437
  prefixes: ["mmax/", "mm/"],
29438
+ authScheme: "bearer",
29438
29439
  capabilities: {
29439
29440
  supportsTools: true,
29440
29441
  supportsVision: true,
@@ -29449,6 +29450,7 @@ var getRemoteProviders = () => [
29449
29450
  apiPath: "/anthropic/v1/messages",
29450
29451
  apiKeyEnvVar: "MINIMAX_CODING_API_KEY",
29451
29452
  prefixes: ["mmc/"],
29453
+ authScheme: "bearer",
29452
29454
  capabilities: {
29453
29455
  supportsTools: true,
29454
29456
  supportsVision: true,
@@ -31815,7 +31817,7 @@ async function fetchGLMCodingModels() {
31815
31817
  return [];
31816
31818
  }
31817
31819
  }
31818
- var __filename4, __dirname4, VERSION = "5.6.0", CACHE_MAX_AGE_DAYS2 = 2, MODELS_JSON_PATH, CLAUDISH_CACHE_DIR2, ALL_MODELS_JSON_PATH;
31820
+ var __filename4, __dirname4, VERSION = "5.6.1", CACHE_MAX_AGE_DAYS2 = 2, MODELS_JSON_PATH, CLAUDISH_CACHE_DIR2, ALL_MODELS_JSON_PATH;
31819
31821
  var init_cli = __esm(() => {
31820
31822
  init_config();
31821
31823
  init_model_loader();
@@ -64757,9 +64759,13 @@ class AnthropicCompatProvider {
64757
64759
  }
64758
64760
  async getHeaders() {
64759
64761
  const headers = {
64760
- "x-api-key": this.apiKey,
64761
64762
  "anthropic-version": "2023-06-01"
64762
64763
  };
64764
+ if (this.provider.authScheme === "bearer") {
64765
+ headers["Authorization"] = `Bearer ${this.apiKey}`;
64766
+ } else {
64767
+ headers["x-api-key"] = this.apiKey;
64768
+ }
64763
64769
  if (this.provider.headers) {
64764
64770
  Object.assign(headers, this.provider.headers);
64765
64771
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
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",