fix(codex): stabilize prompt cache key

This commit is contained in:
hanyuanling
2026-05-16 00:13:10 +08:00
committed by Xubin Ren
parent b2ac609bb5
commit 2d17a095dc
2 changed files with 51 additions and 1 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class OpenAICodexProvider(LLMProvider):
"input": input_items,
"text": {"verbosity": "medium"},
"include": ["reasoning.encrypted_content"],
"prompt_cache_key": _prompt_cache_key(messages),
"prompt_cache_key": _prompt_cache_key(messages[:2]),
"tool_choice": tool_choice or "auto",
"parallel_tool_calls": True,
}