feat: support the chat completions API in the Rust CLI

This commit is contained in:
Michael Bolin
2025-05-08 13:55:49 -07:00
parent 9fdf2fa066
commit e57d102e88
18 changed files with 613 additions and 183 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ async fn keeps_previous_response_id_between_tasks() {
// Environment variable that should exist in the test environment.
// ModelClient will return an error if the environment variable for the
// provider is not set.
env_key: "PATH".into(),
env_key: Some("PATH".into()),
env_key_instructions: None,
wire_api: codex_core::WireApi::Responses,
};
// Init session
+3 -1
View File
@@ -80,7 +80,9 @@ async fn retries_on_early_close() {
// Environment variable that should exist in the test environment.
// ModelClient will return an error if the environment variable for the
// provider is not set.
env_key: "PATH".into(),
env_key: Some("PATH".into()),
env_key_instructions: None,
wire_api: codex_core::WireApi::Responses,
};
let ctrl_c = std::sync::Arc::new(tokio::sync::Notify::new());