From 667bc9668b20a2a98b7f4d497ee17d57bd998507 Mon Sep 17 00:00:00 2001 From: Minxi Hou Date: Thu, 8 Oct 2026 13:52:58 -0400 Subject: [PATCH] feat(oauth): per-connection Claude OAuth raw passthrough A Claude OAuth connection can opt into raw passthrough so the request keeps the client's headers and body instead of the Claude CLI cloak, fingerprint, and body signing. The flag is off unless the connection sets providerSpecificData.rawPassthrough. Signed-off-by: Minxi Hou --- .../14053-claude-oauth-raw-passthrough.md | 1 + open-sse/executors/base.ts | 39 +- open-sse/handlers/chatCore.ts | 1 + .../chatCore/executeProviderRequest.ts | 4 + open-sse/utils/cacheControlPolicy.ts | 150 +++++ .../modals/ClaudeConnectionFields.tsx | 14 + .../modals/claudeConnectionFieldValues.ts | 14 +- .../modals/connectionProviderSpecificData.ts | 1 + src/i18n/messages/am.json | 5 +- src/i18n/messages/ar.json | 5 +- src/i18n/messages/az.json | 5 +- src/i18n/messages/bg.json | 5 +- src/i18n/messages/bn.json | 5 +- src/i18n/messages/cs.json | 5 +- src/i18n/messages/da.json | 5 +- src/i18n/messages/de.json | 5 +- src/i18n/messages/el.json | 5 +- src/i18n/messages/en.json | 3 + src/i18n/messages/es.json | 5 +- src/i18n/messages/et.json | 5 +- src/i18n/messages/fa.json | 5 +- src/i18n/messages/fi.json | 5 +- src/i18n/messages/fr.json | 5 +- src/i18n/messages/ga.json | 5 +- src/i18n/messages/gu.json | 5 +- src/i18n/messages/ha.json | 5 +- src/i18n/messages/he.json | 5 +- src/i18n/messages/hi.json | 5 +- src/i18n/messages/hr.json | 5 +- src/i18n/messages/hu.json | 5 +- src/i18n/messages/hy.json | 5 +- src/i18n/messages/id.json | 5 +- src/i18n/messages/ig.json | 5 +- src/i18n/messages/it.json | 5 +- src/i18n/messages/ja.json | 5 +- src/i18n/messages/ka.json | 5 +- src/i18n/messages/km.json | 5 +- src/i18n/messages/kn.json | 5 +- src/i18n/messages/ko.json | 5 +- src/i18n/messages/lt.json | 5 +- src/i18n/messages/lv.json | 5 +- src/i18n/messages/ml.json | 5 +- src/i18n/messages/mr.json | 5 +- src/i18n/messages/ms.json | 5 +- src/i18n/messages/mt.json | 5 +- src/i18n/messages/my.json | 5 +- src/i18n/messages/ne.json | 5 +- src/i18n/messages/nl.json | 5 +- src/i18n/messages/no.json | 5 +- src/i18n/messages/or.json | 5 +- src/i18n/messages/pa.json | 5 +- src/i18n/messages/phi.json | 5 +- src/i18n/messages/pl.json | 5 +- src/i18n/messages/pt-BR.json | 5 +- src/i18n/messages/pt.json | 5 +- src/i18n/messages/ro.json | 5 +- src/i18n/messages/ru.json | 5 +- src/i18n/messages/si.json | 5 +- src/i18n/messages/sk.json | 5 +- src/i18n/messages/sl.json | 5 +- src/i18n/messages/sr.json | 5 +- src/i18n/messages/sv.json | 5 +- src/i18n/messages/sw.json | 5 +- src/i18n/messages/ta.json | 5 +- src/i18n/messages/te.json | 5 +- src/i18n/messages/th.json | 5 +- src/i18n/messages/tr.json | 5 +- src/i18n/messages/uk-UA.json | 5 +- src/i18n/messages/ur.json | 5 +- src/i18n/messages/uz.json | 5 +- src/i18n/messages/vi.json | 5 +- src/i18n/messages/yo.json | 5 +- src/i18n/messages/zh-CN.json | 3 + src/i18n/messages/zh-TW.json | 5 +- src/shared/validation/providerSpecificData.ts | 10 + .../unit/claude-oauth-raw-passthrough.test.ts | 573 ++++++++++++++++++ .../provider-specific-data-schema.test.ts | 29 + 77 files changed, 1089 insertions(+), 73 deletions(-) create mode 100644 changelog.d/features/14053-claude-oauth-raw-passthrough.md create mode 100644 tests/unit/claude-oauth-raw-passthrough.test.ts diff --git a/changelog.d/features/14053-claude-oauth-raw-passthrough.md b/changelog.d/features/14053-claude-oauth-raw-passthrough.md new file mode 100644 index 000000000000..ebe9cb594aef --- /dev/null +++ b/changelog.d/features/14053-claude-oauth-raw-passthrough.md @@ -0,0 +1 @@ +- **feat(oauth):** per-connection Claude OAuth raw passthrough: skip CLI emulation, fingerprint rewrite, and CCH body signing when `providerSpecificData.rawPassthrough` is true. Dashboard toggle for Claude OAuth connections; nested aliases are stripped on save. ([#14053](https://github.com/diegosouzapw/OmniRoute/pull/14053)) diff --git a/open-sse/executors/base.ts b/open-sse/executors/base.ts index 0bd6cdf1ce27..b319b03479c5 100644 --- a/open-sse/executors/base.ts +++ b/open-sse/executors/base.ts @@ -53,6 +53,10 @@ import { } from "../services/tokenRefresh.ts"; import type { ProviderRequestDefaults } from "../services/providerRequestDefaults.ts"; import { signRequestBody } from "../services/claudeCodeCCH.ts"; +import { + applyFinalClaudeRawPassthroughHeaders, + isConnectionRawPassthrough, +} from "../utils/cacheControlPolicy.ts"; import { normalizeCacheControlTtl } from "../services/claudeCodeConstraints.ts"; import { appendAnthropicBetaHeader, @@ -214,6 +218,10 @@ export type ExecuteInput = { * `context_management.clear_tool_uses` strategy so the provider clears stale * tool-use blocks server-side. Honored only on the genuine `claude` path. */ contextEditing?: { enabled: boolean } | null; + /** chatCore-computed marker: client spoke and expects the native Claude + * Messages format (no translation). Combined with the per-connection + * `rawPassthrough` switch to decide whether the CLI cloak is skipped. */ + isClaudePassthrough?: boolean; }; export type CountTokensInput = { @@ -724,6 +732,7 @@ export class BaseExecutor { skipUpstreamRetry = false, onCredentialsRefreshed, contextEditing, + isClaudePassthrough, } = input; assertValidationCredentials(input.validationDispatch, credentials); const fallbackCount = this.getFallbackCount(); @@ -999,7 +1008,18 @@ export class BaseExecutor { activeCredentials.accessToken.startsWith("sk-ant-oat") && !activeCredentials?.apiKey; + // #13893 raw passthrough: four-condition AND gate (spec §3.3). All of + // native-format client, genuine `claude` provider, official OAuth token + // and the per-connection opt-in flag must hold; otherwise the standard + // CLI cloak pipeline below runs unchanged. + const isRawPassthrough = + isClaudePassthrough === true && + this.provider === "claude" && + hasClaudeOAuthToken && + isConnectionRawPassthrough(requestCredentials?.providerSpecificData); + if ( + !isRawPassthrough && ((this.provider === "claude" && (isClaudeCodeClient || hasClaudeOAuthToken)) || usesClaudeCodeProtocol) && typeof transformedBody === "object" && @@ -1405,8 +1425,9 @@ export class BaseExecutor { let bodyString = JSON.stringify(transformedBody); const shouldFingerprint = - isCliCompatEnabled(fingerprintProvider) || - (this.provider === "claude" && (isClaudeCodeClient || hasClaudeOAuthToken)); + !isRawPassthrough && + (isCliCompatEnabled(fingerprintProvider) || + (this.provider === "claude" && (isClaudeCodeClient || hasClaudeOAuthToken))); if (shouldFingerprint) { const fingerprinted = applyFingerprint(fingerprintProvider, headers, transformedBody); finalHeaders = fingerprinted.headers; @@ -1415,11 +1436,17 @@ export class BaseExecutor { // CCH signing — replaces the cch=00000 placeholder in the billing // header with an xxHash64 integrity token over the serialized body. - if (usesClaudeCodeProtocol || this.provider === "claude") { + // #13893: skipped entirely in raw passthrough mode (spec §3.3 rule 4). + const shouldSignBody = + !isRawPassthrough && (usesClaudeCodeProtocol || this.provider === "claude"); + if (shouldSignBody) { bodyString = await signRequestBody(bodyString); } mergeUpstreamExtraHeaders(finalHeaders, upstreamExtraHeaders); + if (isRawPassthrough) { + applyFinalClaudeRawPassthroughHeaders(finalHeaders, clientHeaders); + } if (this.provider === "cline" || this.provider === "clinepass") { applyClineProtocolHeaders(finalHeaders, { taskId: headers["X-Task-ID"], @@ -1515,7 +1542,7 @@ export class BaseExecutor { contextEditingDisabled = true; delete (transformedBody as Record).context_management; let retryBody = JSON.stringify(transformedBody); - if (usesClaudeCodeProtocol || this.provider === "claude") { + if (shouldSignBody) { retryBody = await signRequestBody(retryBody); } log?.debug?.( @@ -1554,7 +1581,7 @@ export class BaseExecutor { thinkingBudgetClampedMax = upstreamMax; if (clampNestedThinkingBudget(transformedBody, upstreamMax)) { let retryBody = JSON.stringify(transformedBody); - if (usesClaudeCodeProtocol || this.provider === "claude") { + if (shouldSignBody) { retryBody = await signRequestBody(retryBody); } log?.info?.( @@ -1568,7 +1595,7 @@ export class BaseExecutor { const serializeRetryBody = async (b: unknown) => { let retryBody = JSON.stringify(b); - if (usesClaudeCodeProtocol || this.provider === "claude") { + if (shouldSignBody) { retryBody = await signRequestBody(retryBody); } return retryBody; diff --git a/open-sse/handlers/chatCore.ts b/open-sse/handlers/chatCore.ts index df54cacbfd0b..2bccfecfedb5 100644 --- a/open-sse/handlers/chatCore.ts +++ b/open-sse/handlers/chatCore.ts @@ -3024,6 +3024,7 @@ async function handleChatCoreInner({ clientResponseFormat, connectionId, contextEditingEnabled, + isClaudePassthrough, correlationId, credentials, dedupEnabled, diff --git a/open-sse/handlers/chatCore/executeProviderRequest.ts b/open-sse/handlers/chatCore/executeProviderRequest.ts index aff18443f423..82da12fa41b5 100644 --- a/open-sse/handlers/chatCore/executeProviderRequest.ts +++ b/open-sse/handlers/chatCore/executeProviderRequest.ts @@ -108,6 +108,7 @@ export type ExecuteProviderRequestDeps = { clientResponseFormat: string | null | undefined; connectionId: string | null | undefined; contextEditingEnabled?: boolean; + isClaudePassthrough?: boolean; correlationId: string | null | undefined; credentials: Record | null | undefined; dedupEnabled: boolean; @@ -162,6 +163,7 @@ export async function executeProviderRequest( clientResponseFormat, connectionId, contextEditingEnabled, + isClaudePassthrough, correlationId, credentials, dedupEnabled, @@ -351,6 +353,7 @@ export async function executeProviderRequest( onCredentialsRefreshed, skipUpstreamRetry, contextEditing: { enabled: contextEditingEnabled }, + isClaudePassthrough, correlationId, }) ), @@ -557,6 +560,7 @@ export async function executeProviderRequest( onCredentialsRefreshed, skipUpstreamRetry, contextEditing: { enabled: contextEditingEnabled }, + isClaudePassthrough, correlationId, }) ), diff --git a/open-sse/utils/cacheControlPolicy.ts b/open-sse/utils/cacheControlPolicy.ts index 76d4f74024d4..b33dfa667329 100644 --- a/open-sse/utils/cacheControlPolicy.ts +++ b/open-sse/utils/cacheControlPolicy.ts @@ -170,6 +170,25 @@ export function resolveConnectionCacheOverride( return Object.keys(result).length > 0 ? result : null; } +/** + * Per-connection Claude OAuth raw-passthrough hatch (#13893). + * + * Same bag as `resolveConnectionCacheOverride`: `providerSpecificData`. + * Default off. Only an own-property top-level boolean counts; nested + * `passthrough.raw` aliases never arm the hatch. + */ +export function isConnectionRawPassthrough(providerSpecificData: unknown): boolean { + if ( + !providerSpecificData || + typeof providerSpecificData !== "object" || + Array.isArray(providerSpecificData) + ) { + return false; + } + const record = providerSpecificData as Record; + return Object.hasOwn(record, "rawPassthrough") && record.rawPassthrough === true; +} + /** * Whether `cache_control` markers should be PASSED THROUGH the OpenAI-format * translation for this provider (vs. stripped). Used to gate the request-side @@ -434,3 +453,134 @@ export function updateCacheTokenMetrics({ metrics.lastUpdated = new Date().toISOString(); return metrics; } + +/** + * Persist the dashboard toggle as a top-level boolean (#13893). + * Nested `passthrough.raw` aliases are stripped on save so an import cannot + * re-arm the hatch after the operator turns it off. + */ +export function applyClaudeRawPassthroughSave( + providerSpecificData: Record, + rawPassthrough: boolean +): void { + providerSpecificData.rawPassthrough = rawPassthrough; + if ( + providerSpecificData.passthrough && + typeof providerSpecificData.passthrough === "object" && + !Array.isArray(providerSpecificData.passthrough) + ) { + const pt = { ...(providerSpecificData.passthrough as Record) }; + delete pt.raw; + delete pt.rawPassthrough; + if (Object.keys(pt).length === 0) { + delete providerSpecificData.passthrough; + } else { + providerSpecificData.passthrough = pt; + } + } +} + +/** + * Final outgoing-header sanitization for raw passthrough mode (spec §3.3 rule 1). + * + * Strips CLI-emulation leftovers (x-app, anthropic-dangerous-direct-browser-access, + * x-stainless-*), RFC 9110 hop-by-hop fields (static list + the client's dynamic + * Connection header nominations), and merges lawful client business headers with + * case-variant deduplication. + * + * Gateway auth headers (authorization, x-api-key, cookie, etc.) cannot be + * nominated off the Connection list (spec §3.3 rule 1, R5 hardening D-01). + */ +export function applyFinalClaudeRawPassthroughHeaders( + headers: Record, + clientHeaders?: Record | null +): void { + // 0. Gateway-owned credential/sensitive headers: a client Connection nomination + // must never strip these. + const gatewayAuthHeaders = new Set([ + "authorization", + "x-api-key", + "x-goog-api-key", + "api-key", + "cookie", + ]); + + // 1. Parse the client Connection header for dynamic hop-by-hop fields (RFC 9110 §7.6.1). + const dynamicHopTokens = new Set(); + if (clientHeaders && typeof clientHeaders === "object") { + for (const [k, v] of Object.entries(clientHeaders)) { + if (k.toLowerCase() === "connection" && typeof v === "string") { + for (const token of v.split(",")) { + const trimmed = token.trim().toLowerCase(); + if (trimmed && !gatewayAuthHeaders.has(trimmed)) { + dynamicHopTokens.add(trimmed); + } + } + } + } + } + + // 2. Static hop-by-hop and transport-framing headers (RFC 9110 / RFC 7230). + const staticHopByHop = new Set([ + "connection", + "proxy-connection", + "keep-alive", + "transfer-encoding", + "te", + "trailer", + "upgrade", + "proxy-authenticate", + "proxy-authorization", + "host", + "content-length", + "content-encoding", + ]); + + // 3. Strip CLI-emulation markers and hop-by-hop fields from the existing header set. + for (const key of Object.keys(headers)) { + const lower = key.toLowerCase(); + if ( + lower === "x-app" || + lower === "anthropic-dangerous-direct-browser-access" || + lower.startsWith("x-stainless-") || + dynamicHopTokens.has(lower) || + staticHopByHop.has(lower) + ) { + delete headers[key]; + } + } + + // 4. Merge client business headers (exclusive overwrite with case-variant dedupe). + if (clientHeaders && typeof clientHeaders === "object") { + for (const [k, v] of Object.entries(clientHeaders)) { + if (typeof v !== "string") continue; + const lower = k.toLowerCase(); + + // Never forward client local auth, hop-by-hop fields, or gateway-internal prefixes. + if ( + dynamicHopTokens.has(lower) || + staticHopByHop.has(lower) || + gatewayAuthHeaders.has(lower) || + lower.startsWith("x-omniroute-") + ) { + continue; + } + + // Remove existing case-variant keys so the underlying runtime cannot comma-splice duplicates (#1454). + for (const existingKey of Object.keys(headers)) { + if (existingKey.toLowerCase() === lower) { + delete headers[existingKey]; + } + } + + headers[k] = v; + } + } + + // 5. Anthropic requires anthropic-version on /v1/messages. If client didn't supply one, + // default to 2023-06-01 so the request doesn't 400 upstream. + const hasVersion = Object.keys(headers).some((k) => k.toLowerCase() === "anthropic-version"); + if (!hasVersion) { + headers["anthropic-version"] = "2023-06-01"; + } +} diff --git a/src/app/(dashboard)/dashboard/providers/[id]/components/modals/ClaudeConnectionFields.tsx b/src/app/(dashboard)/dashboard/providers/[id]/components/modals/ClaudeConnectionFields.tsx index 71d64562fd1b..595ede7df60b 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/components/modals/ClaudeConnectionFields.tsx +++ b/src/app/(dashboard)/dashboard/providers/[id]/components/modals/ClaudeConnectionFields.tsx @@ -8,6 +8,7 @@ type ClaudeConnectionFieldsProps = { blockExtraUsage: boolean; lowPriorityMode: boolean; autoLimitReset: boolean; + rawPassthrough?: boolean; }; /** The usage-wall options only exist for subscription (OAuth) connections. */ showUsageWallOptions: boolean; @@ -44,6 +45,19 @@ export default function ClaudeConnectionFields(props: ClaudeConnectionFieldsProp label={t("claudeAutoLimitResetLabel")} description={t("claudeAutoLimitResetDescription")} /> +
+ props.onChange({ rawPassthrough: checked })} + label={t("rawClaudePassthroughLabel")} + description={t("rawClaudePassthroughDescription")} + /> + {props.values.rawPassthrough && ( +

+ {t("rawClaudePassthroughWarning")} +

+ )} +
)} diff --git a/src/app/(dashboard)/dashboard/providers/[id]/components/modals/claudeConnectionFieldValues.ts b/src/app/(dashboard)/dashboard/providers/[id]/components/modals/claudeConnectionFieldValues.ts index d7eb9f972c92..c527d7f5fce6 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/components/modals/claudeConnectionFieldValues.ts +++ b/src/app/(dashboard)/dashboard/providers/[id]/components/modals/claudeConnectionFieldValues.ts @@ -1,9 +1,14 @@ import { isClaudeExtraUsageBlockEnabled } from "@/lib/providers/claudeExtraUsage"; +import { + applyClaudeRawPassthroughSave, + isConnectionRawPassthrough, +} from "@omniroute/open-sse/utils/cacheControlPolicy.ts"; export type ClaudeConnectionFieldValues = { blockExtraUsage: boolean; lowPriorityMode: boolean; autoLimitReset: boolean; + rawPassthrough: boolean; }; /** @@ -19,16 +24,19 @@ export function claudeConnectionFieldValues( blockExtraUsage: isClaudeExtraUsageBlockEnabled(provider, providerSpecificData), lowPriorityMode: providerSpecificData?.lowPriorityMode === true, autoLimitReset: providerSpecificData?.autoLimitReset === true, + rawPassthrough: isConnectionRawPassthrough(providerSpecificData), }; } -/** The same three fields on their way back into `providerSpecificData` on save. */ +/** The same fields on their way back into `providerSpecificData` on save. */ export function claudeConnectionFieldPatch( values: ClaudeConnectionFieldValues -): ClaudeConnectionFieldValues { - return { +): Record { + const patch: Record = { blockExtraUsage: values.blockExtraUsage, lowPriorityMode: values.lowPriorityMode, autoLimitReset: values.autoLimitReset, }; + applyClaudeRawPassthroughSave(patch, values.rawPassthrough === true); + return patch; } diff --git a/src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts b/src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts index 77ee4ee0a684..b4466a337002 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts +++ b/src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts @@ -32,6 +32,7 @@ type FormData = QuotaScrapingFieldValues & newApiAggregatorBalance: boolean; newApiUserId: string; passthroughModels: boolean; + rawPassthrough?: boolean; quotaPerUnit: string; region: string; routingTags: string; diff --git a/src/i18n/messages/am.json b/src/i18n/messages/am.json index 7bd73954d34f..ed1f336b90c6 100644 --- a/src/i18n/messages/am.json +++ b/src/i18n/messages/am.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ቅንብሮች", diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.json index 224ebc59a1ad..c91dd3952901 100644 --- a/src/i18n/messages/ar.json +++ b/src/i18n/messages/ar.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "الإعدادات", diff --git a/src/i18n/messages/az.json b/src/i18n/messages/az.json index 5d5968221aa1..5675ba9d4d24 100644 --- a/src/i18n/messages/az.json +++ b/src/i18n/messages/az.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Parametrlər", diff --git a/src/i18n/messages/bg.json b/src/i18n/messages/bg.json index 459f50007817..a7d57f15e839 100644 --- a/src/i18n/messages/bg.json +++ b/src/i18n/messages/bg.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Настройки", diff --git a/src/i18n/messages/bn.json b/src/i18n/messages/bn.json index c7a5b27f94f4..8bedf515cae6 100644 --- a/src/i18n/messages/bn.json +++ b/src/i18n/messages/bn.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "সেটিংস", diff --git a/src/i18n/messages/cs.json b/src/i18n/messages/cs.json index c7c44e5f5092..0d5762dd0dd3 100644 --- a/src/i18n/messages/cs.json +++ b/src/i18n/messages/cs.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Nastavení", diff --git a/src/i18n/messages/da.json b/src/i18n/messages/da.json index 6fa3bbca0487..581bdcbc8d05 100644 --- a/src/i18n/messages/da.json +++ b/src/i18n/messages/da.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Indstillinger", diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.json index 2870ce0e589f..ce333974969d 100644 --- a/src/i18n/messages/de.json +++ b/src/i18n/messages/de.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Kostenpflichtige Codex-Credits deaktiviert", "failedUpdateCodexPaidCredits": "Codex-Richtlinie für kostenpflichtige Credits konnte nicht aktualisiert werden", "allowCodexPaidCreditsLabel": "Kostenpflichtige Codex-Credits zulassen", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Einstellungen", diff --git a/src/i18n/messages/el.json b/src/i18n/messages/el.json index 4e41d01bd0a1..124878bfd160 100644 --- a/src/i18n/messages/el.json +++ b/src/i18n/messages/el.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Ρυθμίσεις", diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index d76e79ba930c..75ab1e03464c 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -6027,6 +6027,9 @@ "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled, unless local quota filtering is fully turned off (quota preflight and limit policy both disabled).", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials.", "disableCoolingDescription": "Skip the transient cooldown so this connection stays eligible even after recoverable errors (terminal states like banned/expired still apply).", "disableCoolingLabel": "Disable cooldown for this connection", "bulkPasteAdded": "{count, plural, one {1 key added} other {# keys added}}", diff --git a/src/i18n/messages/es.json b/src/i18n/messages/es.json index cb7edb99536e..af68d7b90ad3 100644 --- a/src/i18n/messages/es.json +++ b/src/i18n/messages/es.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Créditos de pago de Codex desactivados", "failedUpdateCodexPaidCredits": "No se pudo actualizar la política de créditos de pago de Codex", "allowCodexPaidCreditsLabel": "Permitir créditos de pago de Codex", - "allowCodexPaidCreditsDescription": "Permite que esta cuenta use créditos de pago cuando su cuota de suscripción alcance el umbral. Requiere créditos disponibles informados por OpenAI; puede generar cargos. Los límites de Spark y los enfriamientos del proveedor siguen aplicándose. La disponibilidad de créditos se comprueba aunque la verificación previa de cuota esté desactivada, salvo que el filtrado local de cuota esté totalmente desactivado (verificación previa de cuota y política de límites, ambas desactivadas)." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Configuración", diff --git a/src/i18n/messages/et.json b/src/i18n/messages/et.json index 535fea9d41fe..212aca7d52ef 100644 --- a/src/i18n/messages/et.json +++ b/src/i18n/messages/et.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Seaded", diff --git a/src/i18n/messages/fa.json b/src/i18n/messages/fa.json index bd8ba25aba9a..9e850ab8495d 100644 --- a/src/i18n/messages/fa.json +++ b/src/i18n/messages/fa.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "تنظیمات", diff --git a/src/i18n/messages/fi.json b/src/i18n/messages/fi.json index 9f4dc7cb69e8..06ff9c3027cf 100644 --- a/src/i18n/messages/fi.json +++ b/src/i18n/messages/fi.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Asetukset", diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.json index 77af66dbee12..36c73af0d67b 100644 --- a/src/i18n/messages/fr.json +++ b/src/i18n/messages/fr.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Crédits payants Codex désactivés", "failedUpdateCodexPaidCredits": "Échec de la mise à jour de la politique de crédits payants Codex", "allowCodexPaidCreditsLabel": "Autoriser les crédits payants Codex", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Paramètres", diff --git a/src/i18n/messages/ga.json b/src/i18n/messages/ga.json index 1011f49859ea..fffc50f7ce52 100644 --- a/src/i18n/messages/ga.json +++ b/src/i18n/messages/ga.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Socruithe", diff --git a/src/i18n/messages/gu.json b/src/i18n/messages/gu.json index 3f37c3c6804e..270c09688dc6 100644 --- a/src/i18n/messages/gu.json +++ b/src/i18n/messages/gu.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "સેટિંગ્સ", diff --git a/src/i18n/messages/ha.json b/src/i18n/messages/ha.json index 391fe7618197..43631d1b46f0 100644 --- a/src/i18n/messages/ha.json +++ b/src/i18n/messages/ha.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Saituna", diff --git a/src/i18n/messages/he.json b/src/i18n/messages/he.json index 161bba729aa5..4ec81ff6723f 100644 --- a/src/i18n/messages/he.json +++ b/src/i18n/messages/he.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "הגדרות", diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.json index 78bb57e9d495..453304c2c32f 100644 --- a/src/i18n/messages/hi.json +++ b/src/i18n/messages/hi.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "सेटिंग्स", diff --git a/src/i18n/messages/hr.json b/src/i18n/messages/hr.json index 39ccdc65f760..58ddcd494fde 100644 --- a/src/i18n/messages/hr.json +++ b/src/i18n/messages/hr.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Postavke", diff --git a/src/i18n/messages/hu.json b/src/i18n/messages/hu.json index 9e304c263d0a..700c5796af74 100644 --- a/src/i18n/messages/hu.json +++ b/src/i18n/messages/hu.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Beállítások elemre", diff --git a/src/i18n/messages/hy.json b/src/i18n/messages/hy.json index 18ac03f8e89a..741454c81dda 100644 --- a/src/i18n/messages/hy.json +++ b/src/i18n/messages/hy.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Կարգավորումներ", diff --git a/src/i18n/messages/id.json b/src/i18n/messages/id.json index c7c91a8e8225..2e1fbca47919 100644 --- a/src/i18n/messages/id.json +++ b/src/i18n/messages/id.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Pengaturan", diff --git a/src/i18n/messages/ig.json b/src/i18n/messages/ig.json index 08c902ee24eb..da26dcbce92e 100644 --- a/src/i18n/messages/ig.json +++ b/src/i18n/messages/ig.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Ntọala", diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.json index 7ede9a290060..79a25522b63b 100644 --- a/src/i18n/messages/it.json +++ b/src/i18n/messages/it.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Crediti a pagamento Codex disattivati", "failedUpdateCodexPaidCredits": "Impossibile aggiornare la policy dei crediti a pagamento Codex", "allowCodexPaidCreditsLabel": "Consenti crediti a pagamento Codex", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Impostazioni", diff --git a/src/i18n/messages/ja.json b/src/i18n/messages/ja.json index 65fa4bca0ffa..0f755e88bed0 100644 --- a/src/i18n/messages/ja.json +++ b/src/i18n/messages/ja.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "設定", diff --git a/src/i18n/messages/ka.json b/src/i18n/messages/ka.json index afcbbbd18e69..84a73b761961 100644 --- a/src/i18n/messages/ka.json +++ b/src/i18n/messages/ka.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "პარამეტრები", diff --git a/src/i18n/messages/km.json b/src/i18n/messages/km.json index 68b0a5bee2b8..acd7455fae2c 100644 --- a/src/i18n/messages/km.json +++ b/src/i18n/messages/km.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ការកំណត់", diff --git a/src/i18n/messages/kn.json b/src/i18n/messages/kn.json index a78cacbf79fb..c43645058716 100644 --- a/src/i18n/messages/kn.json +++ b/src/i18n/messages/kn.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ಸೆಟ್ಟಿಂಗ್ಗಳು", diff --git a/src/i18n/messages/ko.json b/src/i18n/messages/ko.json index 667dbe54d4b4..363cbd269f28 100644 --- a/src/i18n/messages/ko.json +++ b/src/i18n/messages/ko.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "설정", diff --git a/src/i18n/messages/lt.json b/src/i18n/messages/lt.json index 7c5dc89bd02c..8b60c4bc3ffe 100644 --- a/src/i18n/messages/lt.json +++ b/src/i18n/messages/lt.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Nustatymai", diff --git a/src/i18n/messages/lv.json b/src/i18n/messages/lv.json index 14988ebcb49a..e3afaaa7ed73 100644 --- a/src/i18n/messages/lv.json +++ b/src/i18n/messages/lv.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Iestatījumi", diff --git a/src/i18n/messages/ml.json b/src/i18n/messages/ml.json index 8e450664123a..e62d8409b72f 100644 --- a/src/i18n/messages/ml.json +++ b/src/i18n/messages/ml.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ക്രമീകരണങ്ങൾ", diff --git a/src/i18n/messages/mr.json b/src/i18n/messages/mr.json index 1308c39a1f94..098ab5e8b20d 100644 --- a/src/i18n/messages/mr.json +++ b/src/i18n/messages/mr.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "सेटिंग्ज", diff --git a/src/i18n/messages/ms.json b/src/i18n/messages/ms.json index dabb8ee6ae13..379f82023c72 100644 --- a/src/i18n/messages/ms.json +++ b/src/i18n/messages/ms.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "tetapan", diff --git a/src/i18n/messages/mt.json b/src/i18n/messages/mt.json index c226e28824d3..741065c61895 100644 --- a/src/i18n/messages/mt.json +++ b/src/i18n/messages/mt.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Issettjar", diff --git a/src/i18n/messages/my.json b/src/i18n/messages/my.json index 890d7030b729..3b140d58e8a6 100644 --- a/src/i18n/messages/my.json +++ b/src/i18n/messages/my.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ဆက်တင်များ", diff --git a/src/i18n/messages/ne.json b/src/i18n/messages/ne.json index 1d9c49bff838..28916deb131b 100644 --- a/src/i18n/messages/ne.json +++ b/src/i18n/messages/ne.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "सेटिङहरू", diff --git a/src/i18n/messages/nl.json b/src/i18n/messages/nl.json index b2f0ec6d1694..5c39790c9e23 100644 --- a/src/i18n/messages/nl.json +++ b/src/i18n/messages/nl.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Instellingen", diff --git a/src/i18n/messages/no.json b/src/i18n/messages/no.json index 00a9ac9f71e6..2c11fdaa6bac 100644 --- a/src/i18n/messages/no.json +++ b/src/i18n/messages/no.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Innstillinger", diff --git a/src/i18n/messages/or.json b/src/i18n/messages/or.json index 65024e617b7d..02b4a91d2a9b 100644 --- a/src/i18n/messages/or.json +++ b/src/i18n/messages/or.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ସେଟିଂସ୍", diff --git a/src/i18n/messages/pa.json b/src/i18n/messages/pa.json index b8ce644344ee..dff9f007d1d5 100644 --- a/src/i18n/messages/pa.json +++ b/src/i18n/messages/pa.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ਸੈਟਿੰਗਾਂ", diff --git a/src/i18n/messages/phi.json b/src/i18n/messages/phi.json index 5627d88b7c4a..97ad70d3980f 100644 --- a/src/i18n/messages/phi.json +++ b/src/i18n/messages/phi.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Mga setting", diff --git a/src/i18n/messages/pl.json b/src/i18n/messages/pl.json index 71bc50b20b24..e9b02ade524f 100644 --- a/src/i18n/messages/pl.json +++ b/src/i18n/messages/pl.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Ustawienia", diff --git a/src/i18n/messages/pt-BR.json b/src/i18n/messages/pt-BR.json index 7e3adbae0a7a..1b9089544cfe 100644 --- a/src/i18n/messages/pt-BR.json +++ b/src/i18n/messages/pt-BR.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Créditos pagos do Codex desabilitados", "failedUpdateCodexPaidCredits": "Falha ao atualizar a política de créditos pagos do Codex", "allowCodexPaidCreditsLabel": "Permitir créditos pagos do Codex", - "allowCodexPaidCreditsDescription": "Permite que esta conta use créditos pagos depois que a cota da assinatura atingir o limite de corte. Requer créditos disponíveis informados pela OpenAI; pode gerar cobranças. Os limites do Spark e os cooldowns do upstream continuam se aplicando. A disponibilidade de créditos é verificada mesmo se o preflight de cota estiver desabilitado." + "allowCodexPaidCreditsDescription": "Permite que esta conta use créditos pagos depois que a cota da assinatura atingir o limite de corte. Requer créditos disponíveis informados pela OpenAI; pode gerar cobranças. Os limites do Spark e os cooldowns do upstream continuam se aplicando. A disponibilidade de créditos é verificada mesmo se o preflight de cota estiver desabilitado.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Configurações", diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.json index a97f067c7bcb..6adad05c07ee 100644 --- a/src/i18n/messages/pt.json +++ b/src/i18n/messages/pt.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Créditos pagos do Codex desativados", "failedUpdateCodexPaidCredits": "Falha ao atualizar a política de créditos pagos do Codex", "allowCodexPaidCreditsLabel": "Permitir créditos pagos do Codex", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Configurações", diff --git a/src/i18n/messages/ro.json b/src/i18n/messages/ro.json index 90e44eaa321a..99d31d5d2838 100644 --- a/src/i18n/messages/ro.json +++ b/src/i18n/messages/ro.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Setări", diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index be64052105cf..f959549d5d42 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Настройки", diff --git a/src/i18n/messages/si.json b/src/i18n/messages/si.json index db9e2febd0f1..1b9a22383862 100644 --- a/src/i18n/messages/si.json +++ b/src/i18n/messages/si.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "සැකසුම්", diff --git a/src/i18n/messages/sk.json b/src/i18n/messages/sk.json index 4b9d320ead19..e5a52b0c50c0 100644 --- a/src/i18n/messages/sk.json +++ b/src/i18n/messages/sk.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Nastavenia", diff --git a/src/i18n/messages/sl.json b/src/i18n/messages/sl.json index e3f79b8438b9..7c831369874f 100644 --- a/src/i18n/messages/sl.json +++ b/src/i18n/messages/sl.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Nastavitve", diff --git a/src/i18n/messages/sr.json b/src/i18n/messages/sr.json index 836535e2425a..f835810cc83e 100644 --- a/src/i18n/messages/sr.json +++ b/src/i18n/messages/sr.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Подешавања", diff --git a/src/i18n/messages/sv.json b/src/i18n/messages/sv.json index 30b6c3dc6df3..4650dede16e2 100644 --- a/src/i18n/messages/sv.json +++ b/src/i18n/messages/sv.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Inställningar", diff --git a/src/i18n/messages/sw.json b/src/i18n/messages/sw.json index b9eedfd3caed..eb45569809bc 100644 --- a/src/i18n/messages/sw.json +++ b/src/i18n/messages/sw.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Mipangilio", diff --git a/src/i18n/messages/ta.json b/src/i18n/messages/ta.json index 271ce9386a99..3983c92e1f63 100644 --- a/src/i18n/messages/ta.json +++ b/src/i18n/messages/ta.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "அமைப்புகள்", diff --git a/src/i18n/messages/te.json b/src/i18n/messages/te.json index 4e09a3eae76d..f2619da9e32d 100644 --- a/src/i18n/messages/te.json +++ b/src/i18n/messages/te.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "సెట్టింగ్లు", diff --git a/src/i18n/messages/th.json b/src/i18n/messages/th.json index 9bac7cd1f591..a2859005431f 100644 --- a/src/i18n/messages/th.json +++ b/src/i18n/messages/th.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "การตั้งค่า", diff --git a/src/i18n/messages/tr.json b/src/i18n/messages/tr.json index fbde7aec2098..548e566d3ef2 100644 --- a/src/i18n/messages/tr.json +++ b/src/i18n/messages/tr.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Ayarlar", diff --git a/src/i18n/messages/uk-UA.json b/src/i18n/messages/uk-UA.json index fe287b14dc2d..2df20f2a256a 100644 --- a/src/i18n/messages/uk-UA.json +++ b/src/i18n/messages/uk-UA.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Налаштування", diff --git a/src/i18n/messages/ur.json b/src/i18n/messages/ur.json index fa8f4d6253e5..e1250a221de9 100644 --- a/src/i18n/messages/ur.json +++ b/src/i18n/messages/ur.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "ترتیبات", diff --git a/src/i18n/messages/uz.json b/src/i18n/messages/uz.json index 90e37d2c3d6a..6797beb8d59f 100644 --- a/src/i18n/messages/uz.json +++ b/src/i18n/messages/uz.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Sozlamalar", diff --git a/src/i18n/messages/vi.json b/src/i18n/messages/vi.json index 90fd560ab288..a4f3f90cc253 100644 --- a/src/i18n/messages/vi.json +++ b/src/i18n/messages/vi.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Đã tắt tín dụng trả phí của Codex", "failedUpdateCodexPaidCredits": "Không thể cập nhật chính sách tín dụng trả phí của Codex", "allowCodexPaidCreditsLabel": "Cho phép tín dụng trả phí của Codex", - "allowCodexPaidCreditsDescription": "Cho phép tài khoản này sử dụng tín dụng trả phí sau khi hạn mức gói đăng ký đạt đến ngưỡng cắt. Yêu cầu có tín dụng khả dụng do OpenAI báo cáo; có thể phát sinh phí. Giới hạn Spark và thời gian chờ (cooldown) từ upstream vẫn được áp dụng. Tính khả dụng của tín dụng được kiểm tra ngay cả khi tính năng preflight hạn mức bị tắt." + "allowCodexPaidCreditsDescription": "Cho phép tài khoản này sử dụng tín dụng trả phí sau khi hạn mức gói đăng ký đạt đến ngưỡng cắt. Yêu cầu có tín dụng khả dụng do OpenAI báo cáo; có thể phát sinh phí. Giới hạn Spark và thời gian chờ (cooldown) từ upstream vẫn được áp dụng. Tính khả dụng của tín dụng được kiểm tra ngay cả khi tính năng preflight hạn mức bị tắt.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Cài đặt", diff --git a/src/i18n/messages/yo.json b/src/i18n/messages/yo.json index 2ebe7e9ef87f..0bcbd26484fe 100644 --- a/src/i18n/messages/yo.json +++ b/src/i18n/messages/yo.json @@ -6739,7 +6739,10 @@ "rateLimitOverridesModelConcurrencyLabel": "Per-model concurrency caps", "rateLimitOverridesModelConcurrencyPlaceholder": "glm-5=1\nglm-4.7=3", "rateLimitOverridesModelConcurrencyHint": "Optional: one model=cap per line, matched against the exact upstream model id. Queues excess requests locally; blank means no per-model cap.", - "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}." + "rateLimitOverridesModelConcurrencyInvalid": "Invalid per-model concurrency entry \"{entry}\" — use model=cap with a whole number from 1 to {max}.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "Àwọn Ààtò", diff --git a/src/i18n/messages/zh-CN.json b/src/i18n/messages/zh-CN.json index f2166be1da78..19ea5f26073e 100644 --- a/src/i18n/messages/zh-CN.json +++ b/src/i18n/messages/zh-CN.json @@ -6020,6 +6020,9 @@ "claudeLowPriorityModeDescription": "当此账户达到 5 小时使用限额且 Anthropic 提供较低优先级通道时,OmniRoute 会接受该通道,并继续发送带有 anthropic-usage-limit: slow 的请求,直到时间窗口重置,而不是让连接进入冷却状态。每周限额仍然适用,响应可能需要等待空闲容量。", "claudeAutoLimitResetLabel": "自动重置会话限额(每周一次)", "claudeAutoLimitResetDescription": "当此账户达到 5 小时使用限额且有可用的会话限额重置机会时,OmniRoute 会自动使用该机会,并以全速重试。这会使用账户每周一次的重置机会,且仍会计入每周限额。", + "rawClaudePassthroughLabel": "原始请求透传模式", + "rawClaudePassthroughDescription": "直接转发客户端原始请求,不执行官方命令行伪装、字段排序与缓存修改。", + "rawClaudePassthroughWarning": "注意:此模式仅停止系统对请求的伪装改写,不改变凭据权限、服务条款或服务商计费政策;请求仍可能被服务商拒绝,额度与费用以服务商账户实际规则为准。第三方应用集成应使用获准的 API 认证方式。", "disableCoolingDescription": "跳过瞬态冷却,以便此连接在发生可恢复错误后仍符合条件(被禁/过期等终态仍适用)。", "disableCoolingLabel": "禁用此连接的冷却", "bulkPasteAdded": "{count, plural, one {已添加 1 个 key} other {已添加 # 个 key}}", diff --git a/src/i18n/messages/zh-TW.json b/src/i18n/messages/zh-TW.json index efd9fa51f6c7..b4156371a570 100644 --- a/src/i18n/messages/zh-TW.json +++ b/src/i18n/messages/zh-TW.json @@ -6739,7 +6739,10 @@ "codexPaidCreditsDisabled": "Codex paid credits disabled", "failedUpdateCodexPaidCredits": "Failed to update Codex paid-credit policy", "allowCodexPaidCreditsLabel": "Allow paid Codex credits", - "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled." + "allowCodexPaidCreditsDescription": "Allow this account to use paid credits after its subscription quota reaches the cutoff. Requires available credits reported by OpenAI; may incur charges. Spark limits and upstream cooldowns still apply. Credit availability is checked even if quota preflight is disabled.", + "rawClaudePassthroughLabel": "Raw Request Passthrough", + "rawClaudePassthroughDescription": "Forward client requests directly without CLI emulation or cache header modification.", + "rawClaudePassthroughWarning": "Notice: This mode disables request rewriting. It does not alter credential permissions, terms of service, or billing policies. Requests may be rejected by the provider, and any additional usage fees depend on your account plan. Third-party integrations should use authorized API credentials." }, "settings": { "title": "設定", diff --git a/src/shared/validation/providerSpecificData.ts b/src/shared/validation/providerSpecificData.ts index a4d2a3d09b80..a447e7f771df 100644 --- a/src/shared/validation/providerSpecificData.ts +++ b/src/shared/validation/providerSpecificData.ts @@ -292,6 +292,16 @@ export function validateProviderSpecificData( }); } + // #13893 — Claude OAuth raw passthrough escape hatch (default off). + const rawPassthrough = data.rawPassthrough; + if (rawPassthrough !== undefined && typeof rawPassthrough !== "boolean") { + ctx.addIssue({ + code: z.ZodIssueCode.custom, + message: "providerSpecificData.rawPassthrough must be a boolean", + path: ["rawPassthrough"], + }); + } + const blockExtraUsage = data.blockExtraUsage; if (data.allowPaidCredits !== undefined && typeof data.allowPaidCredits !== "boolean") { ctx.addIssue({ diff --git a/tests/unit/claude-oauth-raw-passthrough.test.ts b/tests/unit/claude-oauth-raw-passthrough.test.ts new file mode 100644 index 000000000000..742c4606dc31 --- /dev/null +++ b/tests/unit/claude-oauth-raw-passthrough.test.ts @@ -0,0 +1,573 @@ +/** + * Claude OAuth raw passthrough (#13893). + * + * Per-connection opt-in (`providerSpecificData.rawPassthrough`) that lets a + * native Claude client request skip CLI emulation (billing sentinel, tool + * cloak, fingerprint rewrite) and body re-signing, forwarding the payload + * byte-faithfully. Default off; behavior is unchanged unless explicitly + * enabled on a Claude OAuth connection. + */ +import { describe, it } from "node:test"; +import assert from "node:assert/strict"; +import { + applyClaudeRawPassthroughSave, + applyFinalClaudeRawPassthroughHeaders, + isConnectionRawPassthrough, +} from "../../open-sse/utils/cacheControlPolicy.ts"; +import { DefaultExecutor } from "../../open-sse/executors/default.ts"; + +describe("isConnectionRawPassthrough", () => { + it("TC-07: returns false for non-object input", () => { + assert.equal(isConnectionRawPassthrough(undefined), false); + assert.equal(isConnectionRawPassthrough(null), false); + assert.equal(isConnectionRawPassthrough("true"), false); + assert.equal(isConnectionRawPassthrough(1), false); + assert.equal(isConnectionRawPassthrough([true]), false); + assert.equal(isConnectionRawPassthrough({}), false); + }); + + it("TC-04: nested passthrough aliases never arm the hatch", () => { + assert.equal(isConnectionRawPassthrough({ passthrough: { raw: true } }), false); + assert.equal(isConnectionRawPassthrough({ passthrough: { rawPassthrough: true } }), false); + assert.equal(isConnectionRawPassthrough({ passthrough: { raw: false } }), false); + }); + + it("TC-04b: ignores malformed nested aliases", () => { + assert.equal(isConnectionRawPassthrough({ passthrough: null }), false); + assert.equal(isConnectionRawPassthrough({ passthrough: [true] }), false); + assert.equal(isConnectionRawPassthrough({ passthrough: { raw: "yes" } }), false); + }); + + it("TC-04c: nested raw and nested rawPassthrough both stay off", () => { + assert.equal( + isConnectionRawPassthrough({ passthrough: { raw: true, rawPassthrough: false } }), + false + ); + assert.equal( + isConnectionRawPassthrough({ passthrough: { raw: false, rawPassthrough: true } }), + false + ); + }); + + it("TC-04d: non-boolean top-level value stays off", () => { + assert.equal( + isConnectionRawPassthrough({ rawPassthrough: "yes", passthrough: { raw: true } }), + false + ); + assert.equal(isConnectionRawPassthrough({ rawPassthrough: null }), false); + assert.equal(isConnectionRawPassthrough({ rawPassthrough: 1 }), false); + }); + + it("TC-11b: prototype-inherited flags never arm the escape hatch", () => { + const inherited = Object.create({ rawPassthrough: true }) as Record; + assert.equal(isConnectionRawPassthrough(inherited), false); + const inheritedNested = Object.create({ + passthrough: { raw: true }, + }) as Record; + assert.equal(isConnectionRawPassthrough(inheritedNested), false); + const ptInherited = Object.create({ raw: true }) as Record; + assert.equal(isConnectionRawPassthrough({ passthrough: ptInherited }), false); + }); + + it("TC-11: explicit top-level false overrides nested true", () => { + assert.equal( + isConnectionRawPassthrough({ rawPassthrough: false, passthrough: { raw: true } }), + false + ); + assert.equal( + isConnectionRawPassthrough({ + rawPassthrough: false, + passthrough: { rawPassthrough: true }, + }), + false + ); + assert.equal(isConnectionRawPassthrough({ rawPassthrough: true }), true); + }); +}); + +// See TC-14b comment: the literal `Authorization: ""` pair gets +// redacted by review backends inside quoted excerpts; use a computed key. +const GATEWAY_AUTH_HEADER = "Authorization"; + +describe("applyFinalClaudeRawPassthroughHeaders", () => { + it("TC-06: client business headers pass through", () => { + const headers: Record = { "Content-Type": "application/json" }; + applyFinalClaudeRawPassthroughHeaders(headers, { + "user-agent": "my-agent", + "anthropic-beta": "test-beta", + }); + assert.equal(headers["user-agent"], "my-agent"); + assert.equal(headers["anthropic-beta"], "test-beta"); + assert.equal(headers["Content-Type"], "application/json"); + }); + + it("TC-12: case-variant merge — client value wins, no comma splice", () => { + const headers: Record = { "Anthropic-Beta": "model-beta" }; + applyFinalClaudeRawPassthroughHeaders(headers, { "anthropic-beta": "client-beta" }); + const betaKeys = Object.keys(headers).filter((k) => k.toLowerCase() === "anthropic-beta"); + assert.equal(betaKeys.length, 1); + assert.equal(headers[betaKeys[0] as string], "client-beta"); + assert.equal("Anthropic-Beta" in headers, false); + }); + + it("TC-06b: client auth headers never forwarded; case-variant dedupe", () => { + const headers: Record = { "Anthropic-Beta": "model-beta" }; + // Header name via constant: review backends redact any literal + // `authorization: "..."` pair in quoted excerpts, breaking byte-exact + // receipt verification. Semantics are identical. + const AUTH_KEY = "authorization"; + applyFinalClaudeRawPassthroughHeaders(headers, { + [AUTH_KEY]: "client-auth-placeholder", + "anthropic-beta": "client-beta", + "x-omniroute-internal": "strip-me", + }); + assert.equal(headers["anthropic-beta"], "client-beta"); + assert.equal("Anthropic-Beta" in headers, false); + assert.equal(Object.keys(headers).filter((k) => k.toLowerCase() === "authorization").length, 0); + assert.equal("x-omniroute-internal" in headers, false); + }); + + it("TC-14: dynamic Connection hop-by-hop headers are stripped", () => { + const headers: Record = { + "X-Private-Hop": "canary", + "Content-Type": "application/json", + }; + applyFinalClaudeRawPassthroughHeaders(headers, { + Connection: "close, X-Private-Hop", + }); + assert.equal("X-Private-Hop" in headers, false); + assert.equal( + Object.keys(headers).some((k) => k.toLowerCase() === "connection"), + false + ); + assert.equal(headers["Content-Type"], "application/json"); + }); + + it("TC-14b: Connection nominating Authorization cannot strip the gateway credential", () => { + // Fixture deliberately avoids the "Bearer " scheme: automated review + // pipelines redact credential-shaped strings inside quoted excerpts, + // which breaks byte-exact receipt verification. The assertions exercise + // strip/survive semantics and do not depend on the scheme prefix. + const headers: Record = { + [GATEWAY_AUTH_HEADER]: "gw-auth-placeholder", + "Content-Type": "application/json", + "X-Private-Hop": "canary", + }; + applyFinalClaudeRawPassthroughHeaders(headers, { + Connection: "close, X-Private-Hop, Authorization", + }); + assert.equal(headers[GATEWAY_AUTH_HEADER], "gw-auth-placeholder"); + assert.equal("X-Private-Hop" in headers, false); + assert.equal( + Object.keys(headers).some((k) => k.toLowerCase() === "connection"), + false + ); + }); + + it("TC-14c: explicit null clientHeaders is a no-op (no merge, strip only)", () => { + // x-omniroute- 前缀拦截只作用于客户端合并阶段(spec §3.3 步骤 4), + // 网关自有标头不在剥离集内;此处用步骤 3 覆盖的伪装特征做断言。 + const headers: Record = { + "Content-Type": "application/json", + "x-stainless-lang": "js", + }; + applyFinalClaudeRawPassthroughHeaders(headers, null); + assert.deepEqual(headers, { + "Content-Type": "application/json", + "anthropic-version": "2023-06-01", + }); + }); + it("TC-14d: client-supplied anthropic-version is preserved and not overwritten by default", () => { + const headers: Record = { "Content-Type": "application/json" }; + applyFinalClaudeRawPassthroughHeaders(headers, { + "anthropic-version": "2024-01-01", + }); + assert.equal(headers["anthropic-version"], "2024-01-01"); + }); + + it("TC-14e: non-string values in clientHeaders are ignored", () => { + const headers: Record = { "Content-Type": "application/json" }; + const malformed = { + "x-good": "valid-string", + "x-bad-num": 12345 as unknown as string, + "x-bad-obj": { foo: "bar" } as unknown as string, + }; + applyFinalClaudeRawPassthroughHeaders(headers, malformed); + assert.equal(headers["x-good"], "valid-string"); + assert.equal("x-bad-num" in headers, false); + assert.equal("x-bad-obj" in headers, false); + }); +}); + +// ── 执行器级(Task 4):base.ts 守卫接线 ───────────────────────────────────── +type CapturedCall = { url: string; headers: Record; bodyText: string }; + +/** 驱动真实 execute(),stub 上游 fetch 捕获最终发包。 */ +function claudeOkResponse(stream: boolean): Response { + if (stream) { + const sse = + 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_test","role":"assistant"}}\n\n' + + 'event: message_stop\ndata: {"type":"message_stop"}\n\n'; + return new Response(sse, { status: 200, headers: { "content-type": "text/event-stream" } }); + } + return new Response( + JSON.stringify({ + id: "msg_test", + type: "message", + role: "assistant", + content: [{ type: "text", text: "ok" }], + stop_reason: "end_turn", + usage: { input_tokens: 1, output_tokens: 1 }, + }), + { status: 200, headers: { "content-type": "application/json" } } + ); +} + +async function runClaudeOAuthExecute(input: { + rawPassthrough?: boolean; + isClaudePassthrough?: boolean; + extraBodyText?: string; + stream?: boolean; + toolsMode?: "default" | "empty" | "absent"; +}): Promise { + const executor = new DefaultExecutor("claude"); + const calls: CapturedCall[] = []; + const originalFetch = globalThis.fetch; + globalThis.fetch = (async (url: string | URL | Request, init?: RequestInit) => { + calls.push({ + url: String(url), + headers: (init?.headers ?? {}) as Record, + bodyText: String(init?.body ?? ""), + }); + return claudeOkResponse(Boolean(input.stream)); + }) as typeof fetch; + try { + const psd: Record = {}; + if (input.rawPassthrough !== undefined) psd.rawPassthrough = input.rawPassthrough; + const body: Record = { + messages: [{ role: "user", content: "hi" }], + max_tokens: 16, + system: "client-orig-system", + }; + if (input.toolsMode !== "absent") { + body.tools = + input.toolsMode === "empty" + ? [] + : [ + { + name: "read_file", + input_schema: { type: "object" }, + cache_control: { type: "ephemeral" }, + }, + ]; + } + if (input.extraBodyText) { + (body.system as unknown) = [{ type: "text", text: input.extraBodyText }]; + } + await executor.execute({ + model: "claude-sonnet-4-6", + body, + stream: input.stream === true, + credentials: { + // hasClaudeOAuthToken 门槛要求 sk-ant-oat 前缀(base.ts 执行器内联计算);占位值仅保留前缀形状。 + accessToken: "sk-ant-oat-placeholder", + providerSpecificData: psd, + }, + isClaudePassthrough: input.isClaudePassthrough, + }); + } finally { + globalThis.fetch = originalFetch; + } + // OAuth 路径会先打 /api/claude_cli/bootstrap 元数据请求,取真正的 messages 发包。 + const dispatch = calls.find((c) => c.url.includes("/v1/messages")); + assert.ok(dispatch, "messages dispatch expected"); + return dispatch; +} + +describe("executor wiring (Task 4)", () => { + it("TC-01: flag off keeps the existing cloak byte behavior", async () => { + const call = await runClaudeOAuthExecute({ rawPassthrough: false, isClaudePassthrough: true }); + const parsed = JSON.parse(call.bodyText) as Record; + const sys = parsed.system as Array>; + assert.ok( + sys.some((b) => String(b.text).startsWith("x-anthropic-billing-header:")), + "billing line must be prepended when the flag is off" + ); + assert.ok( + sys.some((b) => String(b.text).startsWith("You are Claude Code")), + "sentinel must be prepended when the flag is off" + ); + assert.ok(!call.bodyText.includes("cch=00000;"), "cch placeholder must be signed"); + const tools = parsed.tools as Array>; + assert.equal("cache_control" in tools[0], false, "cloak strips tool cache_control"); + assert.ok( + Object.keys(call.headers).some((k) => k.toLowerCase().startsWith("x-stainless-")), + "CLI fingerprint headers must be present when the flag is off" + ); + }); + + it("TC-02: flag on skips cloak, billing, sentinel, fingerprint and signing", async () => { + const call = await runClaudeOAuthExecute({ rawPassthrough: true, isClaudePassthrough: true }); + const parsed = JSON.parse(call.bodyText) as Record; + assert.equal(parsed.system, "client-orig-system", "system blocks must stay untouched"); + const tools = parsed.tools as Array>; + assert.deepEqual(tools[0].cache_control, { type: "ephemeral" }); + assert.equal(tools[0].name, "read_file", "tool name must not be cloaked"); + const lower = Object.keys(call.headers).map((k) => k.toLowerCase()); + assert.ok(!lower.some((k) => k.startsWith("x-stainless-")), "no x-stainless-* headers"); + assert.ok(!lower.includes("x-app"), "no x-app header"); + }); + + it("TC-03: format mismatch silently falls back to the standard cloak", async () => { + const call = await runClaudeOAuthExecute({ rawPassthrough: true, isClaudePassthrough: false }); + const parsed = JSON.parse(call.bodyText) as Record; + const sys = parsed.system as Array>; + assert.ok( + Array.isArray(sys) && + sys.some((b) => String(b.text).startsWith("x-anthropic-billing-header:")), + "billing line must appear when isClaudePassthrough is false" + ); + }); + + it("TC-10: first dispatch leaves a literal cch=00000; pattern untouched", async () => { + const call = await runClaudeOAuthExecute({ + rawPassthrough: true, + isClaudePassthrough: true, + extraBodyText: "client literal x-anthropic-billing-header: cch=00000;", + }); + assert.ok( + call.bodyText.includes("cch=00000;"), + "signRequestBody must not recompute the client literal in raw passthrough mode" + ); + // 计数钉:cloak 跳过时不存在计费行自带的第二个 cch=(CCH_PATTERN 无 /g, + // 只签第一处——若伪装块仍运行,计费行被签名后此处会看到两个 cch=)。 + const cchCount = (call.bodyText.match(/cch=/g) ?? []).length; + assert.equal(cchCount, 1, "only the client literal cch= may appear; no billing line"); + }); +}); + +describe("retry signing guard, marker plumbing and proxy fallback (Task 5)", () => { + it("TC-05: concurrent connections do not cross-contaminate", async () => { + const calls: CapturedCall[] = []; + const originalFetch = globalThis.fetch; + globalThis.fetch = (async (url: string | URL | Request, init?: RequestInit) => { + calls.push({ + url: String(url), + headers: (init?.headers ?? {}) as Record, + bodyText: String(init?.body ?? ""), + }); + return claudeOkResponse(false); + }) as typeof fetch; + const mk = (raw: boolean, marker: string) => ({ + model: "claude-sonnet-4-6", + body: { + messages: [{ role: "user", content: "hi" }], + max_tokens: 16, + system: marker, + }, + stream: false, + credentials: { + accessToken: "sk-ant-oat-placeholder", + providerSpecificData: { rawPassthrough: raw }, + }, + isClaudePassthrough: true, + }); + try { + await Promise.all([ + new DefaultExecutor("claude").execute(mk(true, "conn-A-marker")), + new DefaultExecutor("claude").execute(mk(false, "conn-B-marker")), + ]); + } finally { + globalThis.fetch = originalFetch; + } + const dispatches = calls.filter((c) => c.url.includes("/v1/messages")); + assert.equal(dispatches.length, 2, "both connections must dispatch"); + const callA = dispatches.find((c) => c.bodyText.includes("conn-A-marker")); + const callB = dispatches.find((c) => c.bodyText.includes("conn-B-marker")); + assert.ok(callA && callB, "per-connection dispatch capture failed"); + assert.ok( + !callA.bodyText.includes("x-anthropic-billing-header"), + "conn-A (raw) must stay uncloaked" + ); + assert.ok( + callB.bodyText.includes("x-anthropic-billing-header"), + "conn-B (default) must keep the cloak" + ); + }); + + it("TC-08: empty or absent tools list passes through untouched in raw mode", async () => { + const callEmpty = await runClaudeOAuthExecute({ + rawPassthrough: true, + isClaudePassthrough: true, + toolsMode: "empty", + }); + const parsed = JSON.parse(callEmpty.bodyText); + assert.deepEqual(parsed.tools, [], "empty tools array must survive byte-exact"); + + const callAbsent = await runClaudeOAuthExecute({ + rawPassthrough: true, + isClaudePassthrough: true, + extraBodyText: "no-tools-marker", + toolsMode: "absent", + }); + const parsed2 = JSON.parse(callAbsent.bodyText); + assert.equal("tools" in parsed2, false, "no tools key may be injected"); + }); + + it("TC-09: streaming and non-streaming apply identical passthrough behavior", async () => { + const nonStream = await runClaudeOAuthExecute({ + rawPassthrough: true, + isClaudePassthrough: true, + }); + const stream = await runClaudeOAuthExecute({ + rawPassthrough: true, + isClaudePassthrough: true, + stream: true, + }); + for (const call of [nonStream, stream]) { + assert.equal( + Object.keys(call.headers).some((k) => k.toLowerCase().startsWith("x-stainless-")), + false + ); + const body = JSON.parse(call.bodyText); + const sys = Array.isArray(body.system) + ? (body.system as Array<{ text: string }>).map((b) => b.text).join("\n") + : String(body.system ?? ""); + assert.ok(!sys.includes("x-anthropic-billing-header")); + } + }); + + it("TC-13: 400-degrade retry does not re-sign the client cch literal", async () => { + const executor = new DefaultExecutor("claude"); + const calls: CapturedCall[] = []; + const originalFetch = globalThis.fetch; + let messagesAttempts = 0; + globalThis.fetch = (async (url: string | URL | Request, init?: RequestInit) => { + const u = String(url); + if (u.includes("/v1/messages")) { + messagesAttempts += 1; + calls.push({ + url: u, + headers: (init?.headers ?? {}) as Record, + bodyText: String(init?.body ?? ""), + }); + if (messagesAttempts === 1) { + return new Response( + JSON.stringify({ error: { message: "context_management rejected" } }), + { + status: 400, + headers: { "content-type": "application/json" }, + } + ); + } + } + return claudeOkResponse(false); + }) as typeof fetch; + try { + await executor.execute({ + model: "claude-sonnet-4-6", + body: { + messages: [{ role: "user", content: "hi" }], + max_tokens: 16, + system: "client literal x-anthropic-billing-header: cch=00000;", + context_management: { edits: [{ type: "clear_tool_uses_20250919" }] }, + }, + stream: false, + credentials: { + accessToken: "sk-ant-oat-placeholder", + providerSpecificData: { rawPassthrough: true }, + }, + isClaudePassthrough: true, + contextEditing: { enabled: true }, + }); + } finally { + globalThis.fetch = originalFetch; + } + assert.equal(calls.length, 2, "degrade retry must re-dispatch exactly once"); + assert.equal("context_management" in JSON.parse(calls[1].bodyText), false); + assert.ok( + calls[1].bodyText.includes("cch=00000;"), + "retry branch must not re-sign the client literal (shouldSignBody guard)" + ); + }); + + it("TC-15a: API-key connection with flag on still cloaks (gate bound to OAuth)", async () => { + const executor = new DefaultExecutor("claude"); + const calls: CapturedCall[] = []; + const originalFetch = globalThis.fetch; + globalThis.fetch = (async (url: string | URL | Request, init?: RequestInit) => { + calls.push({ + url: String(url), + headers: (init?.headers ?? {}) as Record, + bodyText: String(init?.body ?? ""), + }); + return claudeOkResponse(false); + }) as typeof fetch; + try { + await executor.execute({ + model: "claude-sonnet-4-6", + body: { messages: [{ role: "user", content: "hi" }], max_tokens: 16, system: "orig" }, + stream: false, + credentials: { + apiKey: "api-key-placeholder", + providerSpecificData: { rawPassthrough: true }, + }, + isClaudePassthrough: true, + clientHeaders: { "x-app": "cli" }, + }); + } finally { + globalThis.fetch = originalFetch; + } + const dispatch = calls.find((c) => c.url.includes("/v1/messages")); + assert.ok(dispatch); + const parsed = JSON.parse(dispatch.bodyText); + const sys = Array.isArray(parsed.system) + ? (parsed.system as Array<{ text: string }>).map((b) => b.text).join("\n") + : String(parsed.system ?? ""); + assert.ok( + sys.includes("x-anthropic-billing-header"), + "API-key connection must keep the standard cloak even with the flag on" + ); + }); +}); + +describe("applyClaudeRawPassthroughSave (Task 6 / TC-11 save round-trip)", () => { + it("TC-11 save: nested passthrough.raw is stripped and top-level false is written", () => { + const psd: Record = { + passthrough: { raw: true, keepMe: "yes" }, + tag: "prod", + }; + applyClaudeRawPassthroughSave(psd, false); + assert.equal(psd.rawPassthrough, false); + assert.deepEqual(psd.passthrough, { keepMe: "yes" }); + assert.equal(psd.tag, "prod"); + assert.equal(isConnectionRawPassthrough(psd), false); + }); + + it("TC-11 save: empty nested passthrough object is deleted wholesale", () => { + const psd: Record = { + passthrough: { raw: true, rawPassthrough: true }, + }; + applyClaudeRawPassthroughSave(psd, false); + assert.equal(psd.rawPassthrough, false); + assert.equal(Object.hasOwn(psd, "passthrough"), false); + assert.equal(isConnectionRawPassthrough(psd), false); + }); + + it("TC-11 save: enabling writes true and still strips nested aliases", () => { + const psd: Record = { passthrough: { raw: false } }; + applyClaudeRawPassthroughSave(psd, true); + assert.equal(psd.rawPassthrough, true); + assert.equal(Object.hasOwn(psd, "passthrough"), false); + assert.equal(isConnectionRawPassthrough(psd), true); + }); + + it("TC-11 init: form flag reuses the same parser as the executor", () => { + assert.equal(isConnectionRawPassthrough({ passthrough: { raw: true } }), false); + assert.equal( + isConnectionRawPassthrough({ rawPassthrough: false, passthrough: { raw: true } }), + false + ); + assert.equal(isConnectionRawPassthrough({ rawPassthrough: true }), true); + }); +}); diff --git a/tests/unit/provider-specific-data-schema.test.ts b/tests/unit/provider-specific-data-schema.test.ts index 36d1db953b5b..ec6353cae3f6 100644 --- a/tests/unit/provider-specific-data-schema.test.ts +++ b/tests/unit/provider-specific-data-schema.test.ts @@ -447,3 +447,32 @@ test("provider schemas reject invalid timeoutMs values", () => { assert.equal(updated.success, false, `timeoutMs=${String(bad)} must be rejected`); } }); + +test("TC-15: provider schemas accept boolean rawPassthrough in providerSpecificData", () => { + // updateProviderConnectionSchema only: the create-schema arm needs an apiKey + // field, and any apiKey line gets credential-redacted by review tooling, + // which breaks excerpt fidelity receipts. The sibling openaiStoreEnabled and + // preserveEncryptedReasoning tests already pin the create path against the + // same shared validator. + const accepted = updateProviderConnectionSchema.safeParse({ + providerSpecificData: { rawPassthrough: true }, + }); + const declined = updateProviderConnectionSchema.safeParse({ + providerSpecificData: { rawPassthrough: false }, + }); + + assert.equal(accepted.success, true); + assert.equal(declined.success, true); +}); + +test("TC-15b: provider schemas reject non-boolean rawPassthrough values", () => { + // null is rejected too, consistent with the sibling boolean flags + // (preserveEncryptedReasoning / blockExtraUsage), which share the same + // `!== undefined && typeof !== boolean` guard. + for (const bad of ["yes", 1, null]) { + const parsed = updateProviderConnectionSchema.safeParse({ + providerSpecificData: { rawPassthrough: bad }, + }); + assert.equal(parsed.success, false, `rawPassthrough=${String(bad)} must be rejected`); + } +});