@serii84/vertex-partner-provider 1.0.29 → 1.0.30

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 +4 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Vertex Partner Provider for OpenCode
3
- * v1.0.29 - Remove delta from finish chunks entirely
3
+ * v1.0.30 - Use @ai-sdk/openai instead of openai-compatible
4
4
  */
5
5
 
6
6
  const fs = require('fs');
@@ -16,7 +16,7 @@ function debugLog(...args) {
16
16
  fs.appendFileSync(DEBUG_FILE, `[${timestamp}] ${message}\n`);
17
17
  }
18
18
 
19
- const { createOpenAICompatible } = require('@ai-sdk/openai-compatible');
19
+ const { createOpenAI } = require('@ai-sdk/openai');
20
20
  const { GoogleAuth } = require('google-auth-library');
21
21
 
22
22
  let authClient = null;
@@ -277,10 +277,11 @@ function createVertexPartner(options = {}) {
277
277
  }
278
278
  };
279
279
 
280
- const provider = createOpenAICompatible({
280
+ const provider = createOpenAI({
281
281
  name: `vertex-${publisher}`,
282
282
  baseURL,
283
283
  fetch: authFetch,
284
+ compatibility: 'compatible', // Use compatible mode for non-OpenAI endpoints
284
285
  });
285
286
 
286
287
  const wrappedProvider = (modelId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serii84/vertex-partner-provider",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Vertex AI partner models (GLM, Kimi, DeepSeek) for OpenCode",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@
10
10
  "author": "",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@ai-sdk/openai-compatible": "^2.0.4",
13
+ "@ai-sdk/openai": "^1.3.22",
14
14
  "google-auth-library": "^10.5.0"
15
15
  }
16
16
  }