mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
feat: rename experimental_instructions_file to model_instructions
This commit is contained in:
@@ -108,11 +108,11 @@ async fn chat_mode_stream_cli() {
|
||||
);
|
||||
}
|
||||
|
||||
/// Verify that passing `-c experimental_instructions_file=...` to the CLI
|
||||
/// Verify that passing `-c model_instructions=...` to the CLI
|
||||
/// overrides the built-in base instructions by inspecting the request body
|
||||
/// received by a mock OpenAI Responses endpoint.
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn exec_cli_applies_experimental_instructions_file() {
|
||||
async fn exec_cli_applies_model_instructions() {
|
||||
skip_if_no_network!();
|
||||
|
||||
// Start mock server which will capture the request and return a minimal
|
||||
@@ -127,7 +127,7 @@ async fn exec_cli_applies_experimental_instructions_file() {
|
||||
// Create a temporary instructions file with a unique marker we can assert
|
||||
// appears in the outbound request payload.
|
||||
let custom = TempDir::new().unwrap();
|
||||
let marker = "cli-experimental-instructions-marker";
|
||||
let marker = "cli-model-instructions-marker";
|
||||
let custom_path = custom.path().join("instr.md");
|
||||
std::fs::write(&custom_path, marker).unwrap();
|
||||
let custom_path_str = custom_path.to_string_lossy().replace('\\', "/");
|
||||
@@ -150,9 +150,7 @@ async fn exec_cli_applies_experimental_instructions_file() {
|
||||
.arg("-c")
|
||||
.arg("model_provider=\"mock\"")
|
||||
.arg("-c")
|
||||
.arg(format!(
|
||||
"experimental_instructions_file=\"{custom_path_str}\""
|
||||
))
|
||||
.arg(format!("model_instructions=\"{custom_path_str}\""))
|
||||
.arg("-C")
|
||||
.arg(&repo_root)
|
||||
.arg("hello?\n");
|
||||
|
||||
Reference in New Issue
Block a user