qwen-opencode-provider 3.2.2 → 3.2.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.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -221,7 +221,7 @@ const MODEL_CAPABILITIES = {
|
|
|
221
221
|
};
|
|
222
222
|
|
|
223
223
|
async function fetchModels() {
|
|
224
|
-
const apiKey =
|
|
224
|
+
const apiKey = readApiKeyFromAuth();
|
|
225
225
|
|
|
226
226
|
return new Promise((resolve) => {
|
|
227
227
|
const options = {
|
|
@@ -306,7 +306,7 @@ function startProxy() {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
if (req.method === 'GET' && req.url === '/health') {
|
|
309
|
-
const apiKey =
|
|
309
|
+
const apiKey = readApiKeyFromAuth();
|
|
310
310
|
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
311
311
|
res.end(JSON.stringify({
|
|
312
312
|
status: 'ok',
|
|
@@ -318,7 +318,7 @@ function startProxy() {
|
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
if (req.url.startsWith('/v1/')) {
|
|
321
|
-
const apiKey =
|
|
321
|
+
const apiKey = readApiKeyFromAuth();
|
|
322
322
|
|
|
323
323
|
const options = {
|
|
324
324
|
hostname: 'qwen.aikit.club',
|