Skip to content

Commit 0c8af1d

Browse files
authored
quote more
1 parent 6c9413f commit 0c8af1d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • roles/usegalaxy_cz.llm_hub/tasks

roles/usegalaxy_cz.llm_hub/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
- name: Retrieve current list of LLMs
44
delegate_to: localhost
55
shell: |
6-
echo '#<model_id> <display_name> <domain> <provider> <free_tag>' >files/{{ inventory_hostname }}/llm_models.loc && \
7-
curl -H "Authorization: Bearer {{ llm_hub.token }}" {{ llm_hub.endpoint }}/models | \
6+
echo '#<model_id> <display_name> <domain> <provider> <free_tag>' > "files/{{ inventory_hostname }}/llm_models.loc" && \
7+
curl -H "Authorization: Bearer {{ llm_hub.token }}" "{{ llm_hub.endpoint }}/models" | \
88
jq -r --arg re "^({{ multimodals | join('|') }})" \
99
'.data[].id | if test($re) then [.,.,"multimodal","CERIT-SC","tag"] else [.,.,"text","CERIT-SC","tag"] end | @tsv' \
1010
>> files/{{ inventory_hostname }}/llm_models.loc
1111
become: false
1212

1313
- name: Install the list of LLMs
1414
copy:
15-
src: files/{{ inventory_hostname }}/llm_models.loc
15+
src: "files/{{ inventory_hostname }}/llm_models.loc"
1616
dest: "{{ galaxy_tool_data_path }}/llm_models.loc"
1717

1818
- name: Install specific local dependencies

0 commit comments

Comments
 (0)