mirror of
https://github.com/openai/codex.git
synced 2026-05-02 10:26:45 +00:00
Merge Modelfamily into modelinfo (#8763)
- Merge ModelFamily into ModelInfo - Remove logic for adding instructions to apply patch - Add compaction limit and visible context window to `ModelInfo`
This commit is contained in:
@@ -86,7 +86,7 @@ async fn prompt_tools_are_consistent_across_requests() -> anyhow::Result<()> {
|
||||
.await?;
|
||||
let base_instructions = thread_manager
|
||||
.get_models_manager()
|
||||
.construct_model_family(
|
||||
.construct_model_info(
|
||||
config
|
||||
.model
|
||||
.as_deref()
|
||||
@@ -94,8 +94,7 @@ async fn prompt_tools_are_consistent_across_requests() -> anyhow::Result<()> {
|
||||
&config,
|
||||
)
|
||||
.await
|
||||
.base_instructions
|
||||
.clone();
|
||||
.base_instructions;
|
||||
|
||||
codex
|
||||
.submit(Op::UserInput {
|
||||
@@ -132,7 +131,7 @@ async fn prompt_tools_are_consistent_across_requests() -> anyhow::Result<()> {
|
||||
base_instructions
|
||||
} else {
|
||||
[
|
||||
base_instructions.clone(),
|
||||
base_instructions,
|
||||
include_str!("../../../apply-patch/apply_patch_tool_instructions.md").to_string(),
|
||||
]
|
||||
.join("\n")
|
||||
|
||||
Reference in New Issue
Block a user