@serii84/vertex-partner-provider 1.0.30 → 1.0.31
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 -4
- 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.
|
|
3
|
+
* v1.0.31 - Revert to openai-compatible (issue is in OpenCode/AI SDK)
|
|
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 {
|
|
19
|
+
const { createOpenAICompatible } = require('@ai-sdk/openai-compatible');
|
|
20
20
|
const { GoogleAuth } = require('google-auth-library');
|
|
21
21
|
|
|
22
22
|
let authClient = null;
|
|
@@ -277,11 +277,10 @@ function createVertexPartner(options = {}) {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
|
|
280
|
-
const provider =
|
|
280
|
+
const provider = createOpenAICompatible({
|
|
281
281
|
name: `vertex-${publisher}`,
|
|
282
282
|
baseURL,
|
|
283
283
|
fetch: authFetch,
|
|
284
|
-
compatibility: 'compatible', // Use compatible mode for non-OpenAI endpoints
|
|
285
284
|
});
|
|
286
285
|
|
|
287
286
|
const wrappedProvider = (modelId) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serii84/vertex-partner-provider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
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": "^
|
|
13
|
+
"@ai-sdk/openai-compatible": "^2.0.4",
|
|
14
14
|
"google-auth-library": "^10.5.0"
|
|
15
15
|
}
|
|
16
16
|
}
|