From fe3ebe3532c6679c851d7bd8ab3a264fb640877e Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Sun, 1 Feb 2026 14:55:41 +0800 Subject: [PATCH] docs(translator): update Codex Claude request transform docs --- internal/translator/codex/claude/codex_claude_request.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/translator/codex/claude/codex_claude_request.go b/internal/translator/codex/claude/codex_claude_request.go index 5c607ecc..aa91b175 100644 --- a/internal/translator/codex/claude/codex_claude_request.go +++ b/internal/translator/codex/claude/codex_claude_request.go @@ -20,12 +20,12 @@ import ( // It extracts the model name, system instruction, message contents, and tool declarations // from the raw JSON request and returns them in the format expected by the internal client. // The function performs the following transformations: -// 1. Sets up a template with the model name and Codex instructions -// 2. Processes system messages and converts them to input content -// 3. Transforms message contents (text, tool_use, tool_result) to appropriate formats +// 1. Sets up a template with the model name and empty instructions field +// 2. Processes system messages and converts them to developer input content +// 3. Transforms message contents (text, image, tool_use, tool_result) to appropriate formats // 4. Converts tools declarations to the expected format // 5. Adds additional configuration parameters for the Codex API -// 6. Prepends a special instruction message to override system instructions +// 6. Maps Claude thinking configuration to Codex reasoning settings // // Parameters: // - modelName: The name of the model to use for the request