**feat(registry): add GPT-5.1 Codex Max model definitions and support**

- Introduced `gpt-5.1-codex-max` variants to model definitions (`low`, `medium`, `high`, `xhigh`).
- Updated executor logic to map effort levels for Codex Max models.
- Added `lastCodexMaxPrompt` processing for `gpt-5.1-codex-max` prompts.
- Defined instructions for `gpt-5.1-codex-max` in a new file: `codex_instructions/gpt-5.1-codex-max_prompt.md`.
This commit is contained in:
Luis Pater
2025-11-20 03:12:22 +08:00
parent cc3cf09c00
commit bf116b68f8
4 changed files with 201 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ func CodexInstructionsForModel(modelName, systemInstructions string) (bool, stri
lastPrompt := ""
lastCodexPrompt := ""
lastCodexMaxPrompt := ""
last51Prompt := ""
// lastReviewPrompt := ""
for _, entry := range entries {
@@ -26,6 +27,8 @@ func CodexInstructionsForModel(modelName, systemInstructions string) (bool, stri
}
if strings.HasPrefix(entry.Name(), "gpt_5_codex_prompt.md") {
lastCodexPrompt = string(content)
} else if strings.HasPrefix(entry.Name(), "gpt-5.1-codex-max_prompt.md") {
lastCodexMaxPrompt = string(content)
} else if strings.HasPrefix(entry.Name(), "prompt.md") {
lastPrompt = string(content)
} else if strings.HasPrefix(entry.Name(), "gpt_5_1_prompt.md") {
@@ -34,8 +37,9 @@ func CodexInstructionsForModel(modelName, systemInstructions string) (bool, stri
// lastReviewPrompt = string(content)
}
}
if strings.Contains(modelName, "codex") {
if strings.Contains(modelName, "codex-max") {
return false, lastCodexMaxPrompt
} else if strings.Contains(modelName, "codex") {
return false, lastCodexPrompt
} else if strings.Contains(modelName, "5.1") {
return false, last51Prompt