fix(build): restore current main type gates

This commit is contained in:
Vincent Koc
2026-04-04 01:18:34 +09:00
parent cf4d3c4daf
commit 9dba944c42
2 changed files with 4 additions and 3 deletions

View File

@@ -50,7 +50,6 @@ function mergeWhatsAppConfig(
},
};
}
const accounts = {
...((channelConfig.accounts as Record<string, WhatsAppAccountConfig> | undefined) ?? {}),
};
@@ -65,7 +64,7 @@ function mergeWhatsAppConfig(
}
mutableNextAccount[key] = value;
}
accounts[accountId] = nextAccount;
accounts[accountId] = nextAccount as WhatsAppAccountConfig;
return {
...cfg,
channels: {

View File

@@ -964,11 +964,13 @@ export function buildOpenAIResponsesParams(
options: OpenAIResponsesOptions | undefined,
) {
const compat = getCompat(model as OpenAIModeModel);
const supportsDeveloperRole =
typeof compat.supportsDeveloperRole === "boolean" ? compat.supportsDeveloperRole : undefined;
const messages = convertResponsesMessages(
model,
context,
new Set(["openai", "openai-codex", "opencode", "azure-openai-responses"]),
{ supportsDeveloperRole: compat.supportsDeveloperRole },
{ supportsDeveloperRole },
);
const cacheRetention = resolveCacheRetention(options?.cacheRetention);
const params: OpenAIResponsesRequestParams = {