mirror of
https://github.com/openai/codex.git
synced 2026-05-02 20:32:04 +03:00
chore: implement Mul for TruncationPolicy (#10272)
Codex thought this was a good idea while working on https://github.com/openai/codex/pull/10192.
This commit is contained in:
@@ -266,7 +266,7 @@ impl ContextManager {
|
||||
}
|
||||
|
||||
fn process_item(&self, item: &ResponseItem, policy: TruncationPolicy) -> ResponseItem {
|
||||
let policy_with_serialization_budget = policy.mul(1.2);
|
||||
let policy_with_serialization_budget = policy * 1.2;
|
||||
match item {
|
||||
ResponseItem::FunctionCallOutput { call_id, output } => {
|
||||
let truncated =
|
||||
|
||||
Reference in New Issue
Block a user