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.
- package/index.cjs +1 -1
- package/message.js +1 -1
- 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 {
|