@burtson-labs/bandit-engine 2.0.52 → 2.0.53
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/dist/{aiProviderStore-3N3VE6D4.mjs → aiProviderStore-337QNQB3.mjs} +2 -2
- package/dist/{chat-YWYLVKXX.mjs → chat-U4SE4JQK.mjs} +6 -6
- package/dist/chat-provider.js +17 -9
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +4 -4
- package/dist/{chunk-RSSJADDD.mjs → chunk-2BGORTWS.mjs} +4 -4
- package/dist/{chunk-QX6CO7TJ.mjs → chunk-557E5VZ2.mjs} +3 -3
- package/dist/{chunk-MH7WFWCP.mjs → chunk-AVV7HDGR.mjs} +3 -3
- package/dist/{chunk-YZ2HJFPQ.mjs → chunk-EULV5CHD.mjs} +2 -2
- package/dist/{chunk-TSQCNHOX.mjs → chunk-GNE4TTSI.mjs} +48 -15
- package/dist/chunk-GNE4TTSI.mjs.map +1 -0
- package/dist/{chunk-BENL3EF2.mjs → chunk-H3BYFEIE.mjs} +18 -10
- package/dist/chunk-H3BYFEIE.mjs.map +1 -0
- package/dist/{chunk-M3BEAMCC.mjs → chunk-NZKLKZJT.mjs} +3 -3
- package/dist/{chunk-Y5N3NSTU.mjs → chunk-O54PTFJM.mjs} +8 -8
- package/dist/{chunk-37PEP5JK.mjs → chunk-UFSEYVRS.mjs} +3 -3
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/{gateway-oScD5tvE.d.mts → gateway-C5T5FfCy.d.mts} +32 -0
- package/dist/{gateway-oScD5tvE.d.ts → gateway-C5T5FfCy.d.ts} +32 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +60 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/management/management.js +60 -19
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +7 -7
- package/dist/modals/chat-modal/chat-modal.js +17 -9
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +4 -4
- package/dist/public-types.d.mts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-BENL3EF2.mjs.map +0 -1
- package/dist/chunk-TSQCNHOX.mjs.map +0 -1
- /package/dist/{aiProviderStore-3N3VE6D4.mjs.map → aiProviderStore-337QNQB3.mjs.map} +0 -0
- /package/dist/{chat-YWYLVKXX.mjs.map → chat-U4SE4JQK.mjs.map} +0 -0
- /package/dist/{chunk-RSSJADDD.mjs.map → chunk-2BGORTWS.mjs.map} +0 -0
- /package/dist/{chunk-QX6CO7TJ.mjs.map → chunk-557E5VZ2.mjs.map} +0 -0
- /package/dist/{chunk-MH7WFWCP.mjs.map → chunk-AVV7HDGR.mjs.map} +0 -0
- /package/dist/{chunk-YZ2HJFPQ.mjs.map → chunk-EULV5CHD.mjs.map} +0 -0
- /package/dist/{chunk-M3BEAMCC.mjs.map → chunk-NZKLKZJT.mjs.map} +0 -0
- /package/dist/{chunk-Y5N3NSTU.mjs.map → chunk-O54PTFJM.mjs.map} +0 -0
- /package/dist/{chunk-37PEP5JK.mjs.map → chunk-UFSEYVRS.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAIProviderStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H3BYFEIE.mjs";
|
|
4
4
|
import "./chunk-KCI46M23.mjs";
|
|
5
5
|
import "./chunk-BJTO5JO5.mjs";
|
|
6
6
|
export {
|
|
7
7
|
useAIProviderStore
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=aiProviderStore-
|
|
9
|
+
//# sourceMappingURL=aiProviderStore-337QNQB3.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GNE4TTSI.mjs";
|
|
4
4
|
import "./chunk-ONQMRE2G.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-EULV5CHD.mjs";
|
|
6
6
|
import "./chunk-EHNWQ4T3.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-NZKLKZJT.mjs";
|
|
8
|
+
import "./chunk-557E5VZ2.mjs";
|
|
9
9
|
import "./chunk-7ZDS33S2.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-H3BYFEIE.mjs";
|
|
11
11
|
import "./chunk-KCI46M23.mjs";
|
|
12
12
|
import "./chunk-BJTO5JO5.mjs";
|
|
13
13
|
export {
|
|
14
14
|
chat_default as default
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=chat-
|
|
16
|
+
//# sourceMappingURL=chat-U4SE4JQK.mjs.map
|
package/dist/chat-provider.js
CHANGED
|
@@ -2303,7 +2303,8 @@ var init_gateway_service = __esm({
|
|
|
2303
2303
|
index: 0,
|
|
2304
2304
|
delta: {
|
|
2305
2305
|
role: parsed.message.role,
|
|
2306
|
-
content: parsed.message.content
|
|
2306
|
+
content: parsed.message.content,
|
|
2307
|
+
tool_calls: parsed.message.tool_calls
|
|
2307
2308
|
},
|
|
2308
2309
|
finish_reason: parsed.done ? parsed.done_reason || "stop" : null
|
|
2309
2310
|
}]
|
|
@@ -3283,6 +3284,7 @@ var init_gateway_provider = __esm({
|
|
|
3283
3284
|
}
|
|
3284
3285
|
}
|
|
3285
3286
|
}
|
|
3287
|
+
const toolAwareRequest = request;
|
|
3286
3288
|
const gatewayRequest = {
|
|
3287
3289
|
model: request.model,
|
|
3288
3290
|
messages,
|
|
@@ -3291,7 +3293,8 @@ var init_gateway_provider = __esm({
|
|
|
3291
3293
|
max_tokens: request.maxTokens,
|
|
3292
3294
|
provider: this.config.provider,
|
|
3293
3295
|
// Only include top-level images for Ollama (fallback)
|
|
3294
|
-
images: this.config.provider === "ollama" ? request.images : void 0
|
|
3296
|
+
images: this.config.provider === "ollama" ? request.images : void 0,
|
|
3297
|
+
tools: toolAwareRequest.tools?.length ? toolAwareRequest.tools : void 0
|
|
3295
3298
|
};
|
|
3296
3299
|
debugLogger.debug("Gateway provider chat request", {
|
|
3297
3300
|
model: request.model,
|
|
@@ -3308,13 +3311,18 @@ var init_gateway_provider = __esm({
|
|
|
3308
3311
|
}))
|
|
3309
3312
|
});
|
|
3310
3313
|
return this.gatewayService.chat(gatewayRequest).pipe(
|
|
3311
|
-
(0, import_rxjs7.map)((response) =>
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3314
|
+
(0, import_rxjs7.map)((response) => {
|
|
3315
|
+
const choice = response.choices?.[0];
|
|
3316
|
+
const toolCalls = choice?.message?.tool_calls ?? choice?.delta?.tool_calls;
|
|
3317
|
+
return {
|
|
3318
|
+
message: {
|
|
3319
|
+
content: choice?.message?.content ?? choice?.delta?.content ?? "",
|
|
3320
|
+
role: "assistant",
|
|
3321
|
+
tool_calls: toolCalls
|
|
3322
|
+
},
|
|
3323
|
+
done: choice?.finish_reason === "stop" || choice?.finish_reason === "length" || choice?.finish_reason === "tool_calls"
|
|
3324
|
+
};
|
|
3325
|
+
})
|
|
3318
3326
|
);
|
|
3319
3327
|
}
|
|
3320
3328
|
generate(request) {
|