Compare commits

...
2 Commits
Author SHA1 Message Date
me 80f5f100f1 llm, add shortcuts for calling chat and code bots. 2026-10-12 09:52:37 -07:00
me 7e2dd72fc1 llm, enable checking qwen port. 2026-10-12 09:52:19 -07:00
+15 -3
View File
@@ -567,9 +567,9 @@
retries: 12
delay: 5
loop:
- "{{ 'http://127.0.0.1:11434/' if ollama_enabled else dummy_website }}"
- "{{ 'http://127.0.0.1:11434' if ollama_enabled else dummy_website }}"
- "{{ 'http://127.0.0.1:42617/health' if zeroclaw_enabled else dummy_website }}"
# TBD: - "{{ 'http://127.0.0.1:4170' if qwen_serve_enabled else dummy_website }}"
- "{{ 'http://127.0.0.1:4170' if qwen_code_enabled else dummy_website }}"
- name: Workstation | Linux | Software | LLMs | Services | Verify | Okay to Fail
ansible.builtin.uri:
@@ -609,7 +609,7 @@
alias pull-models="pull_llms "
alias pull-ai="pull_llms "
function ollama_stop {
function ollama_stop() {
for model in `ollama ps | tail -n +2 | awk '{print $1}'`; do
echo "Stopping ${model}..."
ollama stop $model
@@ -620,6 +620,18 @@
alias ollama-killall="ollama_stop"
alias ollama-kill-all="ollama_stop"
alias ollama-stop-all="ollama_stop"
function ollama_chat() {
ollama run {{ 'ollama3.8:27b' if ansible_memtotal_mb > 32000 else 'ollama3.5:4b' }}
}
alias ollama-chat="ollama_chat "
alias chat="ollama_chat "
function ollama_code() {
ollama run {{ 'ollama3-coder:30b' if ansible_memtotal_mb > 32000 else 'ollama2.5-coder:7b' }}
}
alias ollama-code="ollama_code "
alias code="ollama_code "
state: present
create: false
backup: true