History

fix(translator): comment out `service_tier` removal from OpenAI response processing

Luis Pater committed 8 months ago

Commit 0e6bb071 parent ac135fc1 file · +1 −1Browse files

Unified · Split

internal/translator/codex/openai/responses/codex_openai-responses_request.go+1−1
@@ -25,7 +25,7 @@ func ConvertOpenAIResponsesRequestToCodex(modelName string, inputRawJSON []byte, · 24 unmodified lines
25 rawJSON, _ = sjson.DeleteBytes(rawJSON, "max_completion_tokens")25 rawJSON, _ = sjson.DeleteBytes(rawJSON, "max_completion_tokens")
26 rawJSON, _ = sjson.DeleteBytes(rawJSON, "temperature")26 rawJSON, _ = sjson.DeleteBytes(rawJSON, "temperature")
27 rawJSON, _ = sjson.DeleteBytes(rawJSON, "top_p")27 rawJSON, _ = sjson.DeleteBytes(rawJSON, "top_p")
28 rawJSON, _ = sjson.DeleteBytes(rawJSON, "service_tier")28 // rawJSON, _ = sjson.DeleteBytes(rawJSON, "service_tier")
29 rawJSON, _ = sjson.DeleteBytes(rawJSON, "truncation")29 rawJSON, _ = sjson.DeleteBytes(rawJSON, "truncation")
30 rawJSON = applyResponsesCompactionCompatibility(rawJSON)30 rawJSON = applyResponsesCompactionCompatibility(rawJSON)
31 31

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t