fix(qqbot): remove dead tts config aliases

This commit is contained in:
Vincent Koc
2026-04-06 15:31:49 +01:00
parent 8326349939
commit 6e443a20c8

View File

@@ -207,26 +207,6 @@ type QQBotTtsBlock = QQBotTtsProviderConfig & {
speed?: number;
};
type QQBotMessagesTtsConfig = {
auto?: string;
enabled?: boolean;
provider?: string;
} & Record<string, unknown>;
type QQBotTtsConfigRoot = {
channels?: {
qqbot?: {
tts?: QQBotTtsBlock & { enabled?: boolean; provider?: string };
};
};
models?: {
providers?: Record<string, QQBotTtsProviderConfig>;
};
messages?: {
tts?: QQBotMessagesTtsConfig;
};
};
function asRecord(value: unknown): Record<string, unknown> | undefined {
return typeof value === "object" && value !== null
? (value as Record<string, unknown>)