fix(translator): pass service_tier through OpenAI→Responses conversion

Forward the service_tier field from OpenAI requests into the Responses API payload so clients can select priority/default/flex tiers instead of the field being silently dropped.
This commit is contained in:
Rafli Ahmad Zulfikar
2026-07-20 11:22:42 +07:00
committed by decolua
parent cef5dd4d61
commit c97963c4fb

View File

@@ -380,6 +380,7 @@ export function openaiToOpenAIResponsesRequest(model, body, stream, credentials)
if (body.top_p !== undefined) result.top_p = body.top_p;
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;
return result;
}