mirror of
https://github.com/openai/codex.git
synced 2026-04-30 19:32:04 +03:00
oss
This commit is contained in:
@@ -883,10 +883,6 @@ impl Session {
|
|||||||
/// Build the full turn input by concatenating the current conversation
|
/// Build the full turn input by concatenating the current conversation
|
||||||
/// history with additional items for this turn.
|
/// history with additional items for this turn.
|
||||||
pub fn turn_input_with_history(&self, extra: Vec<ResponseItem>) -> Vec<ResponseItem> {
|
pub fn turn_input_with_history(&self, extra: Vec<ResponseItem>) -> Vec<ResponseItem> {
|
||||||
tracing::info!(
|
|
||||||
"history: {:?}",
|
|
||||||
self.state.lock_unchecked().history.contents()
|
|
||||||
);
|
|
||||||
[self.state.lock_unchecked().history.contents(), extra].concat()
|
[self.state.lock_unchecked().history.contents(), extra].concat()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1413,7 +1409,6 @@ async fn run_task(
|
|||||||
sub_id: String,
|
sub_id: String,
|
||||||
input: Vec<InputItem>,
|
input: Vec<InputItem>,
|
||||||
) {
|
) {
|
||||||
tracing::info!("running task with input: {:?}", input);
|
|
||||||
if input.is_empty() {
|
if input.is_empty() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1554,7 +1549,6 @@ async fn run_task(
|
|||||||
},
|
},
|
||||||
None,
|
None,
|
||||||
) => {
|
) => {
|
||||||
tracing::info!("reasoning item: {:?}", item);
|
|
||||||
items_to_record_in_conversation_history.push(ResponseItem::Reasoning {
|
items_to_record_in_conversation_history.push(ResponseItem::Reasoning {
|
||||||
id: id.clone(),
|
id: id.clone(),
|
||||||
summary: summary.clone(),
|
summary: summary.clone(),
|
||||||
|
|||||||
@@ -1188,6 +1188,7 @@ disable_response_storage = true
|
|||||||
use_experimental_streamable_shell_tool: false,
|
use_experimental_streamable_shell_tool: false,
|
||||||
include_view_image_tool: true,
|
include_view_image_tool: true,
|
||||||
disable_paste_burst: false,
|
disable_paste_burst: false,
|
||||||
|
skip_reasoning_in_chat_completions: false,
|
||||||
},
|
},
|
||||||
o3_profile_config
|
o3_profile_config
|
||||||
);
|
);
|
||||||
@@ -1246,6 +1247,7 @@ disable_response_storage = true
|
|||||||
use_experimental_streamable_shell_tool: false,
|
use_experimental_streamable_shell_tool: false,
|
||||||
include_view_image_tool: true,
|
include_view_image_tool: true,
|
||||||
disable_paste_burst: false,
|
disable_paste_burst: false,
|
||||||
|
skip_reasoning_in_chat_completions: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
assert_eq!(expected_gpt3_profile_config, gpt3_profile_config);
|
assert_eq!(expected_gpt3_profile_config, gpt3_profile_config);
|
||||||
@@ -1319,6 +1321,7 @@ disable_response_storage = true
|
|||||||
use_experimental_streamable_shell_tool: false,
|
use_experimental_streamable_shell_tool: false,
|
||||||
include_view_image_tool: true,
|
include_view_image_tool: true,
|
||||||
disable_paste_burst: false,
|
disable_paste_burst: false,
|
||||||
|
skip_reasoning_in_chat_completions: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
assert_eq!(expected_zdr_profile_config, zdr_profile_config);
|
assert_eq!(expected_zdr_profile_config, zdr_profile_config);
|
||||||
|
|||||||
Reference in New Issue
Block a user