Files
Sunil Srivatsa 15b63dda37 fix(ai): classify gateway caller options by trust tier
Classify every SimpleStreamOptions key once as client, gateway or server,
checked by the compiler, and apply it at one choke point on the
upstream-bound options only (applyCallerTrust). A scoped client loses every
gateway option: request headers plus userProfileId, initiatorOverride,
metadata, serviceTier and the other attribution, billing and transport keys,
which /v1/pi/stream still accepted. The parsed request is left intact, so the
Anthropic encoder still honors a scoped caller's anthropic-beta for
thinking-binding-controls. pi-native filters on WIRE_OPTION_KEYS (client and
gateway tiers), which adds taskBudget, include and
anthropicPrefixMismatchBehavior, already accepted by the translated routes.
2026-11-12 14:38:20 -08:00
..
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00
2026-10-29 05:32:17 +01:00