mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
nixos/wyoming-faster-whisper: fix typo in assertion
Fixes typo in assertion: `initialPromt` -> `initialPrompt` This typo causes the module to fail with: ``` error: A definition for option `assertions' is not of type `list of unspecified value'. Definition values: - In `/nix/store/.../nixos/modules/services/home-automation/wyoming/faster-whisper.nix': <function> ``` The typo was introduced in the v2.5.0 update.
This commit is contained in:
@@ -282,7 +282,7 @@ in
|
||||
mkIf (cfg.servers != { }) {
|
||||
assertions = mapAttrsToList (
|
||||
server: options: {
|
||||
assertion = options.useTransformers -> options.initialPromt == null;
|
||||
assertion = options.useTransformers -> options.initialPrompt == null;
|
||||
message = "wyoming-faster-whisper/${server}: Transformer models (`useTransformers`) do not currently support an `initialPrompt`.";
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user