@ducci/jarvis 1.0.60 → 1.0.61
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/package.json +1 -1
- package/src/server/provider.js +5 -5
package/package.json
CHANGED
package/src/server/provider.js
CHANGED
|
@@ -90,10 +90,10 @@ function anthropicResponseToOpenAI(response) {
|
|
|
90
90
|
const text = textParts.map(t => t.text).join('') || null;
|
|
91
91
|
const toolCalls = toolParts.length > 0
|
|
92
92
|
? toolParts.map(t => ({
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
id: t.id,
|
|
94
|
+
type: 'function',
|
|
95
|
+
function: { name: t.name, arguments: JSON.stringify(t.input) },
|
|
96
|
+
}))
|
|
97
97
|
: undefined;
|
|
98
98
|
|
|
99
99
|
return {
|
|
@@ -151,7 +151,7 @@ export function createClient(config) {
|
|
|
151
151
|
}
|
|
152
152
|
if (config.provider === 'z-ai') {
|
|
153
153
|
return new OpenAI({
|
|
154
|
-
baseURL: 'https://api.z.ai/api/paas/v4/',
|
|
154
|
+
baseURL: 'https://api.z.ai/api/coding/paas/v4/',
|
|
155
155
|
apiKey: config.apiKey,
|
|
156
156
|
});
|
|
157
157
|
}
|