Skip to content

Commit

Permalink
Quote HF token to handle special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Mar 8, 2024
1 parent cd3c59f commit f274700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chart/templates/api/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
replicas: 1
selector:
matchLabels:
matchLabels:
{{- include "azimuth-llm.api-selectorLabels" . | nindent 6 }}
strategy:
{{- .Values.api.updateStrategy | toYaml | nindent 4 }}
Expand Down Expand Up @@ -38,7 +38,7 @@ spec:
{{- else if .Values.huggingface.token }}
env:
- name: HUGGING_FACE_HUB_TOKEN
value: {{ .Values.huggingface.token }}
value: {{ quote .Values.huggingface.token }}
{{- else if contains "Llama" .Values.huggingface.model -}}
{{- fail "Either secretName or token value must be set for Llama and other gated models" }}
{{- end }}
Expand Down

0 comments on commit f274700

Please sign in to comment.