mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 10:57:03 +08:00
feat(gateway): persist OpenAI Responses continuation history
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user