mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
feat: remote compaction (#6795)
Co-authored-by: pakrym-oai <pakrym@openai.com>
This commit is contained in:
1 parent
0eb2e6f9ee
commit
838531d3e4
20 files changed
+688
-134
No files matched your search
@@ -1126,6 +1126,8 @@ pub enum RolloutItem {
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, TS)]
|
||||
pub struct CompactedItem {
|
||||
pub message: String,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub replacement_history: Option<Vec<ResponseItem>>,
|
||||
}
|
||||
|
||||
impl From<CompactedItem> for ResponseItem {
|
||||
|
||||
Reference in new issue
Block a user