llm, fix filename for continue, add print for llm check, refer to stdout on llm check.
This commit is contained in:
@@ -403,7 +403,7 @@
|
||||
timeout: 5
|
||||
register: health
|
||||
until: health.status == 200
|
||||
retries: 12
|
||||
retries: 2
|
||||
delay: 5
|
||||
loop:
|
||||
- "{{ 'http://127.0.0.1:3000/health' if open_webui_enabled else dummy_website }}"
|
||||
@@ -534,6 +534,10 @@
|
||||
register: llm_models
|
||||
changed_when: llm_models.rc == 0
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | Models | ollama | Get Models | Result
|
||||
ansible.builtin.debug:
|
||||
var: llm_models
|
||||
|
||||
# Cheat Sheet: https://docs.zeroclaw.com/master/en/providers/configuration.html
|
||||
- name: Workstation | Linux | Software | LLMs | Models | zeroclaw | Add Providers
|
||||
ansible.builtin.blockinfile:
|
||||
@@ -542,7 +546,7 @@
|
||||
insertafter: EOF
|
||||
block: |
|
||||
{% for llm in llm_installs %}
|
||||
{% if llm.model in llm_models %}
|
||||
{% if llm.model in llm_models.stdout %}
|
||||
[providers.models.ollama.{{ llm.provider }}]
|
||||
model = "{{ llm.model }}"
|
||||
timeout_secs = 3600 # 1 hour, default is 120 (2 minutes), issue happens between 5 and 6 minutes though.
|
||||
@@ -556,7 +560,7 @@
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | Models | Continue | Config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ user_user.home }}/.continue/config.yml"
|
||||
dest: "{{ user_user.home }}/.continue/config.yaml"
|
||||
content: |
|
||||
# Maintained by `env-ansible/tasks/workstation/linux/software/llm.yml`
|
||||
name: Main Config
|
||||
@@ -564,7 +568,7 @@
|
||||
schema: v1
|
||||
models:
|
||||
{% for llm in llm_installs %}
|
||||
{% if llm.model in llm_models %}
|
||||
{% if llm.model in llm_models.stdout %}
|
||||
- name: {{ llm.provider }}
|
||||
provider: ollama
|
||||
model: {{ llm.model }}
|
||||
|
||||
Reference in New Issue
Block a user