refactor(translator): remove unused log dependency and comment out debug logging

docs: add GPT-5 Codex guidelines for CLI usage

- Added detailed guidelines for GPT-5 Codex in Codex CLI.
- Expanded instructions on sandboxing, approvals, editing constraints, and style requirements.
- Included presentation and response formatting best practices.

fix(codex_instructions): update comparison logic to use prefix matching

- Changed system instructions comparison to use `strings.HasPrefix` for improved flexibility.
This commit is contained in:
Luis Pater
2025-10-24 11:47:15 +08:00
parent e783923464
commit f6cf784cd1
18 changed files with 2 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ import (
"strings"
"github.com/router-for-me/CLIProxyAPI/v6/internal/misc"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
)
@@ -74,7 +73,7 @@ func ConvertOpenAIResponsesRequestToCodex(modelName string, inputRawJSON []byte,
if hasOfficialInstructions {
return rawJSON
}
log.Debugf("instructions not matched, %s\n", originalInstructions)
// log.Debugf("instructions not matched, %s\n", originalInstructions)
if len(inputResults) > 0 {
newInput := "[]"