fix(translator): preserve prompt_cache_key when converting chat to responses

This commit is contained in:
Nguyen Thanh Dat
2026-08-13 11:45:45 +07:00
committed by decolua
parent 80afb59907
commit 70ba0024b0
2 changed files with 45 additions and 0 deletions

View File

@@ -421,6 +421,7 @@ export function openaiToOpenAIResponsesRequest(model, body, stream, credentials)
if (body.reasoning !== undefined) result.reasoning = body.reasoning;
if (body.reasoning_effort !== undefined) result.reasoning = { effort: body.reasoning_effort, summary: "auto" };
if (body.service_tier !== undefined) result.service_tier = body.service_tier;
if (body.prompt_cache_key !== undefined) result.prompt_cache_key = body.prompt_cache_key;
return result;
}