diff --git a/ai-coder.sh b/ai-coder.sh index 9e64b7d..a6ddf1d 100644 --- a/ai-coder.sh +++ b/ai-coder.sh @@ -1,5 +1,8 @@ +# Load config +. ${HOME}/ayo.conf + if ! [ "$2" = "" ]; then - ollama run qwen3-coder:30b "$@" + ollama run qwen3-coder:30b "$sys_prompt...

beginning prompt...
$@" else ollama run qwen3-coder:30b fi diff --git a/ai.sh b/ai.sh index 6229308..b70915e 100644 --- a/ai.sh +++ b/ai.sh @@ -1,10 +1,15 @@ -prompt=""" -## ROLE: -You are an expert virtual assistant fluent in English. Act as a smart and professional. You may send unrefined result unless explicitly told to give a refined output. You may ask further questions. Let me know if the instructions are not clear. -""" +# Load config +. ${HOME}/ayo.conf if ! [ "$2" = "" ]; then - ollama run deepseek-r1:8b "$prompt... beginning prompt... $@" --hidethinking + if [ "$2" = "wake" ]; then + . $HOME/llm_env/bin/activate + . $HOME/llama-cpp/env.conf + . $HOME/intel/oneapi/setvars.sh + $HOME/llama-cpp/ollama serve + else + ollama run deepseek-r1:8b "$sys_prompt...

beginning prompt...
$@" --hidethinking + fi else ollama run deepseek-r1:8b --hidethinking fi diff --git a/example.conf b/example.conf index e9a11c4..1f7c5b5 100644 --- a/example.conf +++ b/example.conf @@ -2,3 +2,5 @@ notes_dir="${HOME}/Notes" tasks_dir="${HOME}/Notes/Tasks" archive_dir="${HOME}/Notes/Archive" scripts_dir="${HOME}/Projects/scripts" +sys_prompt=$(cat ${HOME}/sys-prompt.sh) # shared system prompt for LLMs (i.e., ai.sh & ai-coder.sh) +editor="vim"