mirror of
https://github.com/openai/codex.git
synced 2026-11-29 00:00:54 +00:00
add uuid to metadata
This commit is contained in:
@@ -3277,9 +3277,14 @@ impl Session {
|
||||
turn_context: &TurnContext,
|
||||
items: &[ResponseItem],
|
||||
) {
|
||||
self.record_into_history(items, turn_context).await;
|
||||
self.persist_rollout_response_items(items).await;
|
||||
self.send_raw_response_items(turn_context, items).await;
|
||||
let items: Vec<ResponseItem> = items
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(ResponseItem::with_generated_metadata_uuid)
|
||||
.collect();
|
||||
self.record_into_history(&items, turn_context).await;
|
||||
self.persist_rollout_response_items(&items).await;
|
||||
self.send_raw_response_items(turn_context, &items).await;
|
||||
}
|
||||
|
||||
/// Append ResponseItems to the in-memory conversation history only.
|
||||
|
||||
Reference in New Issue
Block a user