diff options
author | lassulus <git@lassul.us> | 2024-12-04 19:26:02 +0100 |
---|---|---|
committer | lassulus <git@lassul.us> | 2024-12-04 19:26:02 +0100 |
commit | 636d6ee89b15e38a44442c041d255ef8743e5efa (patch) | |
tree | 8cebe83c915858e8ac9f83ae43f3c5673c103d35 | |
parent | 3bd2443831443269ddfe54ab58c917cda6e7f1d5 (diff) | |
parent | d400611016fa4a916adcfcca2f4b997f44351c2b (diff) |
-rw-r--r-- | kartei/lass/yellow.nix | 1 | ||||
-rw-r--r-- | kartei/mic92/default.nix | 1 | ||||
-rw-r--r-- | krebs/2configs/reaktor2.nix | 19 | ||||
-rw-r--r-- | krebs/5pkgs/simple/vicuna-chat/default.nix | 33 |
4 files changed, 1 insertions, 53 deletions
diff --git a/kartei/lass/yellow.nix b/kartei/lass/yellow.nix index 1873e02dc..ce365133d 100644 --- a/kartei/lass/yellow.nix +++ b/kartei/lass/yellow.nix @@ -10,6 +10,7 @@ "flix.r" "radar.r" "sonar.r" + "jellyseer.r" "transmission.r" ]; tinc = { diff --git a/kartei/mic92/default.nix b/kartei/mic92/default.nix index 2f010bb08..2a4593e72 100644 --- a/kartei/mic92/default.nix +++ b/kartei/mic92/default.nix @@ -782,7 +782,6 @@ in { aliases = [ "jack.r" "stable-confusion.r" - "vicuna.r" ]; tinc.pubkey = '' -----BEGIN RSA PUBLIC KEY----- diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix index e84827656..7cc6c7550 100644 --- a/krebs/2configs/reaktor2.nix +++ b/krebs/2configs/reaktor2.nix @@ -253,24 +253,6 @@ let }; }; - vicuna = { - pattern = "^!vicuna (.*)$"; - activate = "match"; - arguments = [1]; - timeoutSec = 1337; - command = { - filename = pkgs.writeDash "vicuna" '' - set -efu - - mkdir -p ${stateDir}/vicuna - export CONTEXT=${stateDir}/vicuna/"$_msgtarget".context - ${pkgs.vicuna-chat}/bin/vicuna-chat "$@" | - echo "$_from: $(cat)" | - fold -s -w 426 - ''; - }; - }; - locationsLib = pkgs.writeText "locations.sh" '' ENDPOINT=http://c.r/poi.json get_locations() { @@ -431,7 +413,6 @@ let hooks.sed interrogate say - vicuna (generators.command_hook { inherit (commands) dance random-emoji nixos-version; tell = { diff --git a/krebs/5pkgs/simple/vicuna-chat/default.nix b/krebs/5pkgs/simple/vicuna-chat/default.nix deleted file mode 100644 index db15899d6..000000000 --- a/krebs/5pkgs/simple/vicuna-chat/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ pkgs, ... }: -pkgs.writers.writeDashBin "vicuna-chat" '' - set -efu - - export PATH=${with pkgs; lib.makeBinPath [ - coreutils - curl - jq - ]} - - CONTEXT=''${CONTEXT:-$(date -Id)} - PROMPT=$* - - if ! test -e "$CONTEXT"; then - echo -n 'null' > "$CONTEXT" - fi - - add_to_context() { - jq -rc --argjson message "$1" '. + [$message]' "$CONTEXT" > "$CONTEXT.tmp" - mv "$CONTEXT.tmp" "$CONTEXT" - } - - add_to_context "{\"role\": \"user\", \"content\": \"$PROMPT\"}" - response=$( - jq -nc --slurpfile context "$CONTEXT" '{ - model: "vicuna-13b-v1.5-16k", - messages: $context[0], - }' | - curl -Ss http://vicuna.r/v1/chat/completions -H 'Content-Type: application/json' -d @- - ) - add_to_context "$(jq -rcn --argjson response "$response" '$response.choices[0].message')" - jq -rcn --argjson response "$response" '$response.choices[0].message.content' -'' |