mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-11-27 18:13:19 +00:00
Compare commits
6 Commits
5bb978bd20
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| faef8da677 | |||
| 7a59efb6b0 | |||
| b23d347e26 | |||
| 2649688ef4 | |||
| 97e7ed3e53 | |||
| 9d821052d5 |
@@ -74,7 +74,7 @@
|
||||
#
|
||||
# export AQUAAI_OLLAMA_URL='192.168.1.156:11434'
|
||||
#
|
||||
ollama_url=${AQUAAI_OLLAMA_URL:='https://ai.aquamorph.com'}
|
||||
ollama_url=${AQUAAI_OLLAMA_URL:='https://ai.aquamorph.com/api'}
|
||||
#
|
||||
# Set the default model.
|
||||
#
|
||||
@@ -178,6 +178,9 @@ function set_better_conversions() {
|
||||
system_prompt+=" For personal matters ${AGENT_NAME} is encouraging"
|
||||
system_prompt+=' but brutally honest.'
|
||||
system_prompt+=' Never sycophantic.'
|
||||
system_prompt+=' Do not use em dashes. If an em dash would normally appear,'
|
||||
system_prompt+=' use a comma for continuing thoughts or a period if it'
|
||||
system_prompt+=' should be a separate sentence.'
|
||||
}
|
||||
|
||||
# Set the formatting for all reponses.
|
||||
@@ -369,9 +372,9 @@ function check_requirements() {
|
||||
function get_models() {
|
||||
local model_path=''
|
||||
if [ "${openai_api}" == true ]; then
|
||||
model_path='/api/models'
|
||||
model_path='/models'
|
||||
else
|
||||
model_path='/api/tags'
|
||||
model_path='/tags'
|
||||
fi
|
||||
curl "${CURL_FLAGS[@]}" "${OLLAMA_URL}${model_path}"
|
||||
}
|
||||
@@ -801,7 +804,7 @@ function chat() {
|
||||
local filter=''
|
||||
if [ "${openai_api}" == true ]; then
|
||||
flags+=(-H "Content-Type: application/json")
|
||||
chat_path='/api/chat/completions'
|
||||
chat_path='/chat/completions'
|
||||
filter='.choices[].delta.content // empty'
|
||||
else
|
||||
chat_path='/api/chat'
|
||||
|
||||
@@ -27,12 +27,18 @@ export TERM=xterm
|
||||
# Search
|
||||
alias g='grep -Irn'
|
||||
|
||||
# Dotfiles
|
||||
alias dot='cd ~/.local/share/chezmoi'
|
||||
export DOT_PROGRAM='chezmoi'
|
||||
alias dota="${DOT_PROGRAM} add"
|
||||
alias dotd="${DOT_PROGRAM} diff"
|
||||
alias dote="${DOT_PROGRAM} edit --apply"
|
||||
alias dotu="${DOT_PROGRAM} update"
|
||||
|
||||
# Other
|
||||
alias i='sudo dnf install'
|
||||
alias d='sudo dnf'
|
||||
alias u='sh ~/bin/update.sh'
|
||||
alias dot='cd ~/.local/share/chezmoi'
|
||||
alias dotu='chezmoi update'
|
||||
alias h='cd ~/git/cacolglazier.com/ && hugo server'
|
||||
|
||||
# Git
|
||||
@@ -55,8 +61,8 @@ alias qc="${AQUAAI_PATH} --cli"
|
||||
alias qg="${AQUAAI_PATH} --git"
|
||||
alias qr="${AQUAAI_PATH} --code-review"
|
||||
alias qa="${AQUAAI_PATH} --home-assistant"
|
||||
export AQUAAI_DEFAULT_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M'
|
||||
export AQUAAI_CODING_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M'
|
||||
export AQUAAI_DEFAULT_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q3_K_M'
|
||||
export AQUAAI_CODING_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q3_K_M'
|
||||
export AQUAAI_RICH_FORMAT_MODE=false
|
||||
export AQUAAI_KEY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user