mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 22:32:12 +00:00
fix(build): restore current main type gates
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user