@deepstrike/sdk 0.2.32 → 0.2.33

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.
@@ -81,7 +81,7 @@ export declare const endpointProfiles: {
81
81
  readonly id: "kimi.anthropic";
82
82
  readonly providerId: "kimi";
83
83
  readonly protocol: "anthropic-messages";
84
- readonly baseURL: "https://api.moonshot.ai/anthropic";
84
+ readonly baseURL: "https://api.moonshot.cn/anthropic";
85
85
  };
86
86
  readonly "kimi.openai": {
87
87
  readonly id: "kimi.openai";
@@ -129,7 +129,7 @@ export declare const endpointProfiles: {
129
129
  readonly id: "glm.anthropic";
130
130
  readonly providerId: "glm";
131
131
  readonly protocol: "anthropic-messages";
132
- readonly baseURL: "https://api.z.ai/api/anthropic";
132
+ readonly baseURL: "https://open.bigmodel.cn/api/anthropic";
133
133
  };
134
134
  readonly "glm.openai": {
135
135
  readonly id: "glm.openai";
@@ -47,11 +47,17 @@ export const endpointProfiles = {
47
47
  protocol: "openai-chat",
48
48
  baseURL: "https://api.deepseek.com",
49
49
  },
50
+ // CN vendors (Kimi/GLM) are region-split: mainland (.cn hosts) and international (.ai/z.ai) are
51
+ // SEPARATE accounts with SEPARATE keys — a mainland key 401s on the international host & vice-versa.
52
+ // There is no `region` concept in this SDK: baseURL IS the host axis. These ids carry the DEFAULT =
53
+ // mainland (cn); international users pass their own `baseURL` (with their international key). Keeping
54
+ // both wires on the same region (cn) also fixes the prior split where openai=cn but anthropic=intl,
55
+ // which 401'd a mainland key on the default anthropic wire.
50
56
  "kimi.anthropic": {
51
57
  id: "kimi.anthropic",
52
58
  providerId: "kimi",
53
59
  protocol: "anthropic-messages",
54
- baseURL: "https://api.moonshot.ai/anthropic",
60
+ baseURL: "https://api.moonshot.cn/anthropic",
55
61
  },
56
62
  "kimi.openai": {
57
63
  id: "kimi.openai",
@@ -99,7 +105,9 @@ export const endpointProfiles = {
99
105
  id: "glm.anthropic",
100
106
  providerId: "glm",
101
107
  protocol: "anthropic-messages",
102
- baseURL: "https://api.z.ai/api/anthropic",
108
+ // Default = mainland (consistent with the already-mainland glm.openai). International: pass baseURL
109
+ // "https://api.z.ai/api/anthropic" with an international (z.ai) key.
110
+ baseURL: "https://open.bigmodel.cn/api/anthropic",
103
111
  },
104
112
  "glm.openai": {
105
113
  id: "glm.openai",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepstrike/sdk",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "description": "DeepStrike Node.js SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@anthropic-ai/sdk": "^0.99.0",
75
- "@deepstrike/core": "0.2.32",
75
+ "@deepstrike/core": "0.2.33",
76
76
  "@google/generative-ai": "^0.24.1",
77
77
  "openai": "^5.23.2"
78
78
  },