@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.cjs +4 -4
- package/index.cjs.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -458,7 +458,7 @@ var apiCall = async (api, json) => {
|
|
|
458
458
|
const metrics = createRequestMetrics();
|
|
459
459
|
let timeoutId;
|
|
460
460
|
const baseUrl = new URL(process.env["PROXY"] ?? api.url);
|
|
461
|
-
const apiPath = [baseUrl.pathname, api.name].filter(Boolean).join("/").replace(/\/+/g, "/")
|
|
461
|
+
const apiPath = `${[baseUrl.pathname, api.name].filter(Boolean).join("/").replace(/\/+/g, "/")}${baseUrl.search}`;
|
|
462
462
|
const apiUrl = new URL(apiPath, baseUrl);
|
|
463
463
|
const requestId = crypto.randomUUID();
|
|
464
464
|
if (api.validateRequest) {
|
|
@@ -6350,6 +6350,9 @@ var AxGen = class extends AxProgramWithSignature {
|
|
|
6350
6350
|
content,
|
|
6351
6351
|
streamingValidation
|
|
6352
6352
|
);
|
|
6353
|
+
if (skip) {
|
|
6354
|
+
continue;
|
|
6355
|
+
}
|
|
6353
6356
|
if (this.streamingAsserts.length !== 0) {
|
|
6354
6357
|
await assertStreamingAssertions(
|
|
6355
6358
|
this.streamingAsserts,
|
|
@@ -6368,9 +6371,6 @@ var AxGen = class extends AxProgramWithSignature {
|
|
|
6368
6371
|
);
|
|
6369
6372
|
}
|
|
6370
6373
|
yield* streamValues(this.signature, content, values, xstate);
|
|
6371
|
-
if (skip) {
|
|
6372
|
-
continue;
|
|
6373
|
-
}
|
|
6374
6374
|
await assertAssertions(this.asserts, values);
|
|
6375
6375
|
}
|
|
6376
6376
|
if (result.finishReason === "length") {
|