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 +1 -0
- package/lib/gateway.js +1 -0
- package/package.json +1 -1
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),
|