-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Always send entire request context #1641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| | ResponseItem::FunctionCallOutput { .. } => filtered.push(item.clone()), | ||
| ResponseItem::Reasoning { .. } | ResponseItem::Other => { | ||
| | ResponseItem::FunctionCallOutput { .. } | ||
| | ResponseItem::Reasoning { .. } => filtered.push(item.clone()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to persist reasoning items to send them along later otherwise requests will fail
| } | ||
| } | ||
|
|
||
| impl<'de> Deserialize<'de> for FunctionCallOutputPayload { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix deserialization of FunctionCallOutputs from rollouts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe include this as a comment with a bit more specificity? I don't know what "fix" means without more context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is above the serialize method. This just adds the deserialize for parity.
gpeal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I'll let Michael make the final call on this one though.
| } | ||
| } | ||
|
|
||
| impl<'de> Deserialize<'de> for FunctionCallOutputPayload { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe include this as a comment with a bit more specificity? I don't know what "fix" means without more context.
# Conflicts: # codex-rs/core/src/codex.rs # codex-rs/core/tests/previous_response_id.rs
Always store the entire conversation history.
Request encrypted COT when not storing Responses.
Send entire input context instead of sending previous_response_id