feat(gateway): persist OpenAI Responses continuation history

This commit is contained in:
ZheFox
2026-07-30 19:26:52 +08:00
parent 1ab4f079c9
commit 118f441029
25 changed files with 1881 additions and 84 deletions
@@ -1789,6 +1789,17 @@ async fn apply_sync_success_effects(
report_context: Option<&serde_json::Value>,
payload: &GatewaySyncReportRequest,
) {
if let Some(report_context) = report_context {
crate::ai_serving::persist_converted_response_history(
state.runtime_state(),
report_context,
payload
.client_body_json
.as_ref()
.or(payload.body_json.as_ref()),
)
.await;
}
apply_local_execution_effect(
state,
LocalExecutionEffectContext {