feat: Added aichat

This commit is contained in:
uttarayan21
2024-06-25 13:58:03 +05:30
parent 773fd32982
commit 2cc217369e
3 changed files with 4 additions and 3 deletions

View File

@@ -65,7 +65,6 @@ in {
gh
just
yarn
rustup
clang
cmake
alejandra
@@ -78,6 +77,7 @@ in {
# openapi-tui
# Misc
ttyper
qmk
p7zip
yt-dlp
@@ -208,6 +208,7 @@ in {
};
shellAliases = {
g = "git";
aichat = "op plugin run -- aichat";
# kmpv = "mpv --vo-kitty-use-shm=yes --vo=kitty --really-quiet";
# smpv = "mpv --vo-sixel-buffered=yes --vo=sixel --profile=sw-fast";
};

2
flake.lock generated
View File

@@ -1554,7 +1554,7 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-De9Z+8u1DusdNczSDkRINldxAgjLy/l+e8KzC53WJ8o=",
"narHash": "sha256-N5kRydl6j/PiRmptxk/UXnATjlLyqavqDgECOe7vjkc=",
"path": "./neovim",
"type": "path"
},

View File

@@ -401,7 +401,7 @@ in rec {
"openapikey" (
if pkgs.stdenv.isDarwin
then ''
${pkgs._1password}/bin/op item get 'OpenAI API Token' --fields label=credential
${pkgs._1password}/bin/op item get 'OpenAI API Token' --fields label='api key'
''
else ''
/run/wrappers/bin/op item get 'OpenAI API Token' --fields label=credential