@llmgateway/ai-sdk-provider 2.1.1 → 2.2.1

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.
@@ -1303,6 +1303,19 @@ var LLMGatewayChatLanguageModel = class {
1303
1303
  usage: this.settings.usage
1304
1304
  }, this.config.extraBody), this.settings.extraBody);
1305
1305
  if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
1306
+ if ("schema" in responseFormat && responseFormat.schema) {
1307
+ return __spreadProps(__spreadValues({}, baseArgs), {
1308
+ response_format: {
1309
+ type: "json_schema",
1310
+ json_schema: {
1311
+ name: responseFormat.name || "response",
1312
+ description: responseFormat.description,
1313
+ schema: responseFormat.schema,
1314
+ strict: true
1315
+ }
1316
+ }
1317
+ });
1318
+ }
1306
1319
  return __spreadProps(__spreadValues({}, baseArgs), {
1307
1320
  response_format: { type: "json_object" }
1308
1321
  });