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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. 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 = await checkAndRefreshToken();
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 = await checkAndRefreshToken();
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 = await checkAndRefreshToken();
321
+ const apiKey = readApiKeyFromAuth();
322
322
 
323
323
  const options = {
324
324
  hostname: 'qwen.aikit.club',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qwen-opencode-provider",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "OpenCode plugin for Qwen API - auto adds provider with 28+ models",
5
5
  "main": "index.js",
6
6
  "type": "module",