mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
feat(i18n): add endpoint exposure notice across multiple languages
Added a new translation for the message "Endpoint is exposed without an API key." to various language files, enhancing user awareness regarding API security. This update ensures that users are informed about potential risks associated with unprotected endpoints in their respective languages.
This commit is contained in:
@@ -7,9 +7,8 @@ import { FORMATS } from "../../open-sse/translator/formats.js";
|
||||
const O2K = (body) => translateRequest(FORMATS.OPENAI, FORMATS.KIRO, "m", body, true, null, "kiro");
|
||||
|
||||
describe("OpenAI → Kiro", () => {
|
||||
// openai-to-kiro.js:214-216 — JSON.parse(arguments) without try/catch → throws on bad JSON
|
||||
// KNOWN BUG (severe: throws and breaks the whole request)
|
||||
it.fails("malformed tool arguments do not throw the whole request", () => {
|
||||
// openai-to-kiro.js — safeJSONParse guards bad tool-call JSON (fixed in PR #1582)
|
||||
it("malformed tool arguments do not throw the whole request", () => {
|
||||
expect(() =>
|
||||
O2K({
|
||||
messages: [
|
||||
|
||||
Reference in New Issue
Block a user