feat(ai): use add different prompts for chatting and coding; use qwen3-coder for chatting too
This commit is contained in:
parent
f62aaf6cb1
commit
84ebbca10d
2 changed files with 9 additions and 4 deletions
|
@ -1,8 +1,10 @@
|
|||
# Load config
|
||||
. ${HOME}/ayo.conf
|
||||
|
||||
model=qwen3-coder:30b
|
||||
|
||||
if ! [ "$2" = "" ]; then
|
||||
ollama run qwen3-coder:30b "$sys_prompt...<br /><hr />beginning prompt...<br /></hr /> $@"
|
||||
ollama run $model "%coder_prompt...<br /><hr />beginning prompt...<br /></hr /> $@" --hidethinking
|
||||
else
|
||||
ollama run qwen3-coder:30b
|
||||
ollama run $model --hidethinking
|
||||
fi
|
||||
|
|
7
ai.sh
7
ai.sh
|
@ -1,6 +1,9 @@
|
|||
# Load config
|
||||
. ${HOME}/ayo.conf
|
||||
|
||||
# model=deepseek-r1:8b
|
||||
model=qwen3-coder:30b
|
||||
|
||||
if ! [ "$2" = "" ]; then
|
||||
if [ "$2" = "wake" ]; then
|
||||
. $HOME/llm_env/bin/activate
|
||||
|
@ -8,8 +11,8 @@ if ! [ "$2" = "" ]; then
|
|||
. $HOME/intel/oneapi/setvars.sh
|
||||
$HOME/llama-cpp/ollama serve
|
||||
else
|
||||
ollama run deepseek-r1:8b "$sys_prompt...<br /><hr />beginning prompt...<br /></hr /> $@" --hidethinking
|
||||
ollama run $model "$chat_prompt...<br /><hr />beginning prompt...<br /></hr /> $@" --hidethinking
|
||||
fi
|
||||
else
|
||||
ollama run deepseek-r1:8b --hidethinking
|
||||
ollama run $model --hidethinking
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue