refactor(gateway): remove parsed request object graphs

Keep large gateway payloads as raw body ranges and bind OpenAI parsed-body caches to the body bytes so failover and mapping do not reuse stale mutable state.
This commit is contained in:
name committed 2026-05-30 20:01:38 +08:00
1 parent d8cbf9ab5c
commit b1c4be4ac8
16 files changed
+699 -1228

No files matched your search

@@ -954,7 +954,7 @@ func (h *OpenAIGatewayHandler) validateFunctionCallOutputRequest(c *gin.Context,
return true
}
c.Set(service.OpenAIParsedRequestBodyKey, reqBody)
service.CacheOpenAIParsedRequestBody(c, body, reqBody)
validation := service.ValidateFunctionCallOutputContext(reqBody)
if !validation.HasFunctionCallOutput {
return true