@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ducci/jarvis",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "A fully automated agent system that lives on a server.",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -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
- id: t.id,
94
- type: 'function',
95
- function: { name: t.name, arguments: JSON.stringify(t.input) },
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
  }