ak-claude 0.0.2 → 0.0.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 (3) hide show
  1. package/index.cjs +1 -1
  2. package/message.js +1 -1
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -1280,7 +1280,7 @@ No markdown code blocks, no preamble text.`;
1280
1280
  };
1281
1281
  if (this._isStructured) {
1282
1282
  try {
1283
- if (this._responseSchema) {
1283
+ if (this._responseSchema && !this.vertexai) {
1284
1284
  result.data = JSON.parse(text);
1285
1285
  } else {
1286
1286
  result.data = extractJSON(text);
package/message.js CHANGED
@@ -183,7 +183,7 @@ class Message extends BaseClaude {
183
183
  // Parse structured data if configured
184
184
  if (this._isStructured) {
185
185
  try {
186
- if (this._responseSchema) {
186
+ if (this._responseSchema && !this.vertexai) {
187
187
  // Native structured output — guaranteed valid JSON
188
188
  result.data = JSON.parse(text);
189
189
  } else {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ak-claude",
3
3
  "author": "ak@mixpanel.com",
4
4
  "description": "AK's Claude AI Helper for doing... everything",
5
- "version": "0.0.2",
5
+ "version": "0.0.3",
6
6
  "main": "index.js",
7
7
  "files": [
8
8
  "index.js",