mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
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:
committed by
decolua
parent
cef5dd4d61
commit
c97963c4fb
@@ -380,6 +380,7 @@ export function openaiToOpenAIResponsesRequest(model, body, stream, credentials)
|
|||||||
if (body.top_p !== undefined) result.top_p = body.top_p;
|
if (body.top_p !== undefined) result.top_p = body.top_p;
|
||||||
if (body.reasoning !== undefined) result.reasoning = body.reasoning;
|
if (body.reasoning !== undefined) result.reasoning = body.reasoning;
|
||||||
if (body.reasoning_effort !== undefined) result.reasoning = { effort: body.reasoning_effort, summary: "auto" };
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user