yingclaw 2.5.14 → 2.5.17

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.
package/lib/config.js CHANGED
@@ -327,6 +327,7 @@ async function validateKey(config, options = {}) {
327
327
  'content-type': 'application/json',
328
328
  authorization: `Bearer ${config.apiKey}`,
329
329
  'x-api-key': config.apiKey,
330
+ 'api-key': config.apiKey,
330
331
  'anthropic-version': '2023-06-01',
331
332
  },
332
333
  body: JSON.stringify({
package/lib/gateway.js CHANGED
@@ -209,6 +209,7 @@ async function proxyMessages(req, res, config) {
209
209
  accept: body.stream ? 'text/event-stream' : 'application/json',
210
210
  authorization: `Bearer ${config.apiKey}`,
211
211
  'x-api-key': config.apiKey,
212
+ 'api-key': config.apiKey,
212
213
  'anthropic-version': '2023-06-01',
213
214
  },
214
215
  body: JSON.stringify(body),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yingclaw",
3
- "version": "2.5.14",
3
+ "version": "2.5.17",
4
4
  "description": "Claude Code × 国产大模型一键接入:DeepSeek、Kimi、Qwen、MiniMax、GLM、MiMo",
5
5
  "main": "index.js",
6
6
  "bin": {