@burtson-labs/bandit-engine 2.0.163 → 2.0.164
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/{chat-MRDQ2WRJ.mjs → chat-OSAVW6L2.mjs} +2 -2
- package/dist/{chunk-F32P7Q5O.mjs → chunk-JYBQAKSZ.mjs} +4 -1
- package/dist/{chunk-F32P7Q5O.mjs.map → chunk-JYBQAKSZ.mjs.map} +1 -1
- package/dist/{chunk-HSGQXL4N.mjs → chunk-PNQRS5EN.mjs} +2 -2
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +3 -0
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chat-MRDQ2WRJ.mjs.map → chat-OSAVW6L2.mjs.map} +0 -0
- /package/dist/{chunk-HSGQXL4N.mjs.map → chunk-PNQRS5EN.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IS_STORE_BUILD,
|
|
3
3
|
chat_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JYBQAKSZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
chat_provider_default
|
|
7
7
|
} from "./chunk-URZSIL7X.mjs";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
useGatewayMemory,
|
|
16
16
|
useGatewayModels,
|
|
17
17
|
useManagementAccess
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PNQRS5EN.mjs";
|
|
19
19
|
import "./chunk-IZX2J65Q.mjs";
|
|
20
20
|
import "./chunk-5KBTOCQZ.mjs";
|
|
21
21
|
import "./chunk-O6P37PFR.mjs";
|
|
@@ -21318,6 +21318,9 @@ function resolveTelemetryConfig(opts) {
|
|
|
21318
21318
|
if (!hasAuth && opts.banditApiKey) {
|
|
21319
21319
|
headers["Authorization"] = `Bearer ${opts.banditApiKey}`;
|
|
21320
21320
|
}
|
|
21321
|
+
if (!hasAuth && !opts.banditApiKey && /^https:\/\/otlp\.burtson\.ai$/i.test(endpoint)) {
|
|
21322
|
+
return null;
|
|
21323
|
+
}
|
|
21321
21324
|
const mode = opts.telemetry.mode ?? "metrics+traces";
|
|
21322
21325
|
return { endpoint, headers, mode, serviceName: opts.telemetry.serviceName ?? "bandit-web" };
|
|
21323
21326
|
}
|