@jeffusion/bungee-core 6.11.1 → 6.11.3
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/main.js +64 -44
- package/dist/plugins/anthropic-request-sanitizer/index.js.map +1 -1
- package/dist/plugins/anthropic-tool-name-transformer/index.js.map +1 -1
- package/dist/plugins/chatgpt-oauth/control.js.map +1 -1
- package/dist/plugins/chatgpt-oauth/index.js.map +1 -1
- package/dist/plugins/codex-router/control.js.map +1 -1
- package/dist/plugins/codex-router/index.js +4 -4
- package/dist/plugins/codex-router/index.js.map +5 -5
- package/dist/plugins/deepseek-reasoning-fix/index.js.map +1 -1
- package/dist/plugins/key-access/control.js.map +1 -1
- package/dist/plugins/key-access/index.js.map +1 -1
- package/dist/plugins/key-access/ingress.js.map +1 -1
- package/dist/plugins/key-rate-limit/index.js.map +1 -1
- package/dist/plugins/llm-protocol-adapter/control.js +53 -28
- package/dist/plugins/llm-protocol-adapter/control.js.map +9 -9
- package/dist/plugins/llm-protocol-adapter/index.js +58 -33
- package/dist/plugins/llm-protocol-adapter/index.js.map +10 -10
- package/dist/plugins/llm-tps/index.js.map +1 -1
- package/dist/plugins/model-mapping/index.js.map +1 -1
- package/dist/plugins/models-dev/index.js.map +1 -1
- package/dist/plugins/signature-repair/index.js.map +1 -1
- package/dist/plugins/token-budget/control.js.map +1 -1
- package/dist/plugins/token-budget/index.js.map +1 -1
- package/dist/plugins/token-metering/index.js.map +2 -2
- package/dist/plugins/token-stats/control.js.map +1 -1
- package/dist/plugins/token-stats/index.js.map +1 -1
- package/dist/plugins/user-auth/control.js.map +1 -1
- package/dist/plugins/user-auth/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2918,13 +2918,13 @@ function protocolAdapter(input) {
|
|
|
2918
2918
|
input.signal.removeEventListener("abort", dispose);
|
|
2919
2919
|
dispose();
|
|
2920
2920
|
};
|
|
2921
|
-
const convert = (run) => {
|
|
2921
|
+
const convert = (run, status = 502) => {
|
|
2922
2922
|
try {
|
|
2923
2923
|
return run();
|
|
2924
2924
|
} catch (error) {
|
|
2925
2925
|
const e = error;
|
|
2926
2926
|
if (typeof e.code === "string")
|
|
2927
|
-
throw new DataAdmissionError(
|
|
2927
|
+
throw new DataAdmissionError(status, `llm_adapter_${e.code}`, undefined, { message: e.message, param: e.param });
|
|
2928
2928
|
throw error;
|
|
2929
2929
|
}
|
|
2930
2930
|
};
|
|
@@ -2938,7 +2938,7 @@ function protocolAdapter(input) {
|
|
|
2938
2938
|
}, register(hooks) {
|
|
2939
2939
|
hooks.onValidateOutbound.tapPromise("codex-router.target", async (context) => {
|
|
2940
2940
|
input.signal.throwIfAborted();
|
|
2941
|
-
const result = convert(() => input.session.validateAttempt({ model: protocolRequestModel(input.protocol, context.body, context.url), modelIdentity: readModelIdentity(context.annotations), protocol: input.protocol, body: context.body, url: context.url }));
|
|
2941
|
+
const result = convert(() => input.session.validateAttempt({ model: protocolRequestModel(input.protocol, context.body, context.url), modelIdentity: readModelIdentity(context.annotations), protocol: input.protocol, body: context.body, url: context.url }), 422);
|
|
2942
2942
|
logger.info({ requestId: context.requestId, attemptId: context.attemptId, ...result }, "llm_adapter_target_validated");
|
|
2943
2943
|
return context;
|
|
2944
2944
|
});
|
|
@@ -3839,4 +3839,4 @@ export {
|
|
|
3839
3839
|
server_default as default
|
|
3840
3840
|
};
|
|
3841
3841
|
|
|
3842
|
-
//# debugId=
|
|
3842
|
+
//# debugId=5A106368FE1271BA64756E2164756E21
|