adjust azure responses metadata and handoff gating

This commit is contained in:
Markus Ylisiurunen 2026-01-22 21:00:18 +02:00 committed by Mario Zechner
parent bd7049b7d1
commit c6e966bd1c
3 changed files with 10 additions and 3 deletions

View file

@ -58,7 +58,7 @@ export const streamAzureOpenAIResponses: StreamFunction<"azure-openai-responses"
content: [],
api: "azure-openai-responses" as Api,
provider: model.provider,
model: deploymentName,
model: model.id,
usage: {
input: 0,
output: 0,
@ -208,7 +208,7 @@ function buildParams(
};
params.include = ["reasoning.encrypted_content"];
} else {
if (model.name.startsWith("gpt-5")) {
if (model.name.toLowerCase().startsWith("gpt-5")) {
// Jesus Christ, see https://community.openai.com/t/need-reasoning-false-option-for-gpt-5/1351588/7
messages.push({
role: "developer",