mirror of https://github.com/openclaw/openclaw.git
fix(build): restore current main type gates
This commit is contained in:
parent
cf4d3c4daf
commit
9dba944c42
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue