@ax-llm/ax 11.0.28 → 11.0.29

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.js CHANGED
@@ -307,7 +307,7 @@ var apiCall = async (api, json) => {
307
307
  const metrics = createRequestMetrics();
308
308
  let timeoutId;
309
309
  const baseUrl = new URL(process.env["PROXY"] ?? api.url);
310
- const apiPath = [baseUrl.pathname, api.name].filter(Boolean).join("/").replace(/\/+/g, "/");
310
+ const apiPath = `${[baseUrl.pathname, api.name].filter(Boolean).join("/").replace(/\/+/g, "/")}${baseUrl.search}`;
311
311
  const apiUrl = new URL(apiPath, baseUrl);
312
312
  const requestId = crypto.randomUUID();
313
313
  if (api.validateRequest) {
@@ -6201,6 +6201,9 @@ var AxGen = class extends AxProgramWithSignature {
6201
6201
  content,
6202
6202
  streamingValidation
6203
6203
  );
6204
+ if (skip) {
6205
+ continue;
6206
+ }
6204
6207
  if (this.streamingAsserts.length !== 0) {
6205
6208
  await assertStreamingAssertions(
6206
6209
  this.streamingAsserts,
@@ -6219,9 +6222,6 @@ var AxGen = class extends AxProgramWithSignature {
6219
6222
  );
6220
6223
  }
6221
6224
  yield* streamValues(this.signature, content, values, xstate);
6222
- if (skip) {
6223
- continue;
6224
- }
6225
6225
  await assertAssertions(this.asserts, values);
6226
6226
  }
6227
6227
  if (result.finishReason === "length") {