gpt4all: properly handle newlines in system prompt

This commit is contained in:
2024-09-20 17:31:17 -04:00
parent e3e3036c06
commit c0f8f7617b
4 changed files with 16 additions and 16 deletions

View File

@@ -332,11 +332,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1726844355,
"narHash": "sha256-sbvo+lzHkAdQp7lum7/IbJtUMLJQSoERsQI2Zoytg7I=",
"lastModified": 1726856061,
"narHash": "sha256-aHq3GDX5dNDuNy37TKTY/BD3+2vakPP8W+kNt7p0PZk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ff5752aab38a462024e8fce1475e37dcbd0e7526",
"rev": "a0d059de3645c1b598d258675aaaa9ffdb0039b1",
"type": "github"
},
"original": {

View File

@@ -111,17 +111,15 @@
security.pam.services.swaylock = { };
system.activationScripts = {
"secureboot-keys".text =
let
secureboot_path = "/etc/secureboot";
in
''
#!/bin/sh
rm -fr ${secureboot_path}
rm -fr ${secureboot_path} || true
mkdir -p ${secureboot_path}
${pkgs.gnutar}/bin/tar xf /etc/nixos/secrets/secureboot.tar -C ${secureboot_path}
'';
};
}