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

2
flake.lock generated
View File

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

View File

@@ -401,7 +401,7 @@ in rec {
"openapikey" ( "openapikey" (
if pkgs.stdenv.isDarwin if pkgs.stdenv.isDarwin
then '' 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 '' else ''
/run/wrappers/bin/op item get 'OpenAI API Token' --fields label=credential /run/wrappers/bin/op item get 'OpenAI API Token' --fields label=credential