mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
update: fixes & changes, added configs for aider
and aichat
This commit is contained in:
48
home/.config/aichat/config.yaml
Normal file
48
home/.config/aichat/config.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
# model: ollama:llama3.2:3b
|
||||
model: deepseek:deepseek-chat
|
||||
keybindings: vi
|
||||
function_calling: true
|
||||
rag_embedding_model: nomic-embed-text:latest
|
||||
clients:
|
||||
- type: openai-compatible
|
||||
name: ollama
|
||||
api_base: http://127.0.0.1:11434/v1
|
||||
models:
|
||||
- name: llama3.2:3b
|
||||
max_input_tokens: 128000
|
||||
supports_function_calling: true
|
||||
|
||||
- name: phi4:14b
|
||||
max_input_tokens: 16000
|
||||
supports_function_calling: true
|
||||
|
||||
- name: dolphin3:8b
|
||||
max_input_tokens: 130000
|
||||
supports_function_calling: true
|
||||
|
||||
- name: smallthinker:3b
|
||||
max_input_tokens: 16384
|
||||
supports_function_calling: true
|
||||
|
||||
- name: qwq:32b
|
||||
max_input_tokens: 33000
|
||||
supports_function_calling: true
|
||||
|
||||
- name: nomic-embed-text:latest
|
||||
type: embedding
|
||||
|
||||
- type: openai-compatible
|
||||
name: deepseek
|
||||
api_base: https://api.deepseek.com/v1
|
||||
api_key: your_api_key # FIXME
|
||||
models:
|
||||
- name: deepseek-chat
|
||||
max_input_tokens: 64000
|
||||
supports_vision: true
|
||||
supports_function_calling: true
|
||||
|
||||
- name: deepseek-reasoner
|
||||
max_input_tokens: 64000
|
||||
supports_vision: true
|
||||
supports_function_calling: true
|
||||
|
5
home/.config/aichat/roles/spellcheck.md
Normal file
5
home/.config/aichat/roles/spellcheck.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
model: deepseek:deepseek-chat
|
||||
|
||||
---
|
||||
Your task is to take the text provided and rewrite it into a clear, grammatically correct version while preserving the original meaning as closely as possible. Correct any spelling mistakes, punctuation errors, verb tense issues, word choice problems, and other grammatical mistakes. Responde with just a varinat or varinats of improved text.
|
6
home/.config/aichat/roles/to-emoji.md
Normal file
6
home/.config/aichat/roles/to-emoji.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
model: ollama:llama3.2:3b
|
||||
|
||||
---
|
||||
convert __INPUT__ to emoji.
|
||||
response: just an emoji or emojies, without words or explanations
|
5
home/.config/aichat/roles/translate#english#russian.md
Normal file
5
home/.config/aichat/roles/translate#english#russian.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
model: deepseek:deepseek-chat
|
||||
|
||||
---
|
||||
translate text below from __ARG1__ to __ARG2__
|
5
home/.config/aichat/roles/translate#russian#english.md
Normal file
5
home/.config/aichat/roles/translate#russian#english.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
model: deepseek:deepseek-chat
|
||||
|
||||
---
|
||||
translate text below from __ARG1__ to __ARG2__
|
27
home/.config/fish/completions/aichat.fish
Normal file
27
home/.config/fish/completions/aichat.fish
Normal file
@@ -0,0 +1,27 @@
|
||||
complete -c aichat -s m -l model -x -a "(aichat --list-models)" -d 'Select a LLM model' -r
|
||||
complete -c aichat -l prompt -d 'Use the system prompt'
|
||||
complete -c aichat -s r -l role -x -a "(aichat --list-roles)" -d 'Select a role' -r
|
||||
complete -c aichat -s s -l session -x -a "(aichat --list-sessions)" -d 'Start or join a session' -r
|
||||
complete -c aichat -l empty-session -d 'Ensure the session is empty'
|
||||
complete -c aichat -l save-session -d 'Ensure the new conversation is saved to the session'
|
||||
complete -c aichat -s a -l agent -x -a "(aichat --list-agents)" -d 'Start a agent' -r
|
||||
complete -c aichat -l agent-variable -d 'Set agent variables'
|
||||
complete -c aichat -l rag -x -a"(aichat --list-rags)" -d 'Start a RAG' -r
|
||||
complete -c aichat -l rebuild-rag -d 'Rebuild the RAG to sync document changes'
|
||||
complete -c aichat -l macro -x -a"(aichat --list-macros)" -d 'Execute a macro' -r
|
||||
complete -c aichat -l serve -d 'Serve the LLM API and WebAPP'
|
||||
complete -c aichat -s e -l execute -d 'Execute commands in natural language'
|
||||
complete -c aichat -s c -l code -d 'Output code only'
|
||||
complete -c aichat -s f -l file -d 'Include files, directories, or URLs' -r -F
|
||||
complete -c aichat -s S -l no-stream -d 'Turn off stream mode'
|
||||
complete -c aichat -l dry-run -d 'Display the message without sending it'
|
||||
complete -c aichat -l info -d 'Display information'
|
||||
complete -c aichat -l sync-models -d 'Sync models updates'
|
||||
complete -c aichat -l list-models -d 'List all available chat models'
|
||||
complete -c aichat -l list-roles -d 'List all roles'
|
||||
complete -c aichat -l list-sessions -d 'List all sessions'
|
||||
complete -c aichat -l list-agents -d 'List all agents'
|
||||
complete -c aichat -l list-rags -d 'List all RAGs'
|
||||
complete -c aichat -l list-macros -d 'List all macros'
|
||||
complete -c aichat -s h -l help -d 'Print help'
|
||||
complete -c aichat -s V -l version -d 'Print version'
|
8
home/.config/fish/functions/aichat_fish.fish
Normal file
8
home/.config/fish/functions/aichat_fish.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
function aichat_fish
|
||||
set -l _old (commandline)
|
||||
if test -n $_old
|
||||
echo -n "⌛"
|
||||
commandline -f repaint
|
||||
commandline (aichat -e $_old)
|
||||
end
|
||||
end
|
@@ -21,4 +21,6 @@ function fish_user_key_bindings
|
||||
bind \eb back-op -M insert
|
||||
bind \eB backtrack-op -M insert
|
||||
bind \e/ list-op -M insert
|
||||
|
||||
bind \ea aichat_fish -M insert
|
||||
end
|
||||
|
@@ -5,7 +5,7 @@ shell = ["fish", "-c"]
|
||||
line-number = "relative"
|
||||
cursorline = true
|
||||
color-modes = true
|
||||
auto-save = true
|
||||
auto-save = false
|
||||
idle-timeout = 0
|
||||
bufferline = "multiple"
|
||||
popup-border = "popup"
|
||||
|
@@ -13,7 +13,7 @@ args = ["--stdio"]
|
||||
command = "helix-gpt"
|
||||
args = [
|
||||
"--handler", "copilot",
|
||||
"--copilotApiKey", "your_api_key", # TODO: write fixme
|
||||
"--copilotApiKey", "your_api_key", # FIXME
|
||||
]
|
||||
|
||||
[language-server.lsp-ai]
|
||||
@@ -22,7 +22,7 @@ args = ["--stdio"]
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
language-servers = [ "rust-analyzer", "copilot" ]
|
||||
language-servers = [ "rust-analyzer" ]
|
||||
|
||||
[language-server.rust-analyzer.config]
|
||||
checkOnSave = { command = "clippy" }
|
||||
|
@@ -157,5 +157,10 @@ return {
|
||||
mods = 'CTRL|SHIFT',
|
||||
action = act.ClearSelection
|
||||
},
|
||||
{
|
||||
key = 'Enter',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action.DisableDefaultAssignment,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user