Skip to content

Commit

Permalink
llm-uservice: Adapt xxx_COMPONENT_NAME changes (#716)
Browse files Browse the repository at this point in the history
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
  • Loading branch information
lianhao authored Jan 17, 2025
1 parent 0674b83 commit ab51131
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helm-charts/common/llm-uservice/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
data:
{{- if hasSuffix "llm-textgen" .Values.image.repository }}
{{- if eq "TGI" .Values.TEXTGEN_BACKEND }}
LLM_COMPONENT_NAME: "OPEA_LLM"
LLM_COMPONENT_NAME: "OpeaTextGenService"
{{- if not .Values.LLM_ENDPOINT }}
LLM_ENDPOINT: "http://{{ .Release.Name }}-tgi"
{{- end }}
{{- else if eq "vLLM" .Values.TEXTGEN_BACKEND }}
LLM_COMPONENT_NAME: "OPEA_LLM"
LLM_COMPONENT_NAME: "OpeaTextGenService"
{{- if not .Values.LLM_ENDPOINT }}
LLM_ENDPOINT: "http://{{ .Release.Name }}-vllm"
{{- end }}
Expand All @@ -26,12 +26,12 @@ data:
MAX_INPUT_TOKENS: {{ .Values.MAX_INPUT_TOKENS | default "" | quote }}
MAX_TOTAL_TOKENS: {{ .Values.MAX_TOTAL_TOKENS | default "" | quote }}
{{- if eq "TGI" .Values.DOCSUM_BACKEND }}
DocSum_COMPONENT_NAME: "OPEADocSum_TGI"
DocSum_COMPONENT_NAME: "OpeaDocSumTgi"
{{- if not .Values.LLM_ENDPOINT }}
LLM_ENDPOINT: "http://{{ .Release.Name }}-tgi"
{{- end }}
{{- else if eq "vLLM" .Values.DOCSUM_BACKEND }}
DocSum_COMPONENT_NAME: "OPEADocSum_vLLM"
DocSum_COMPONENT_NAME: "OpeaDocSumvLLM"
{{- if not .Values.LLM_ENDPOINT }}
LLM_ENDPOINT: "http://{{ .Release.Name }}-vllm"
{{- end }}
Expand All @@ -40,12 +40,12 @@ data:
{{- end }}
{{- else if hasSuffix "llm-faqgen" .Values.image.repository }}
{{- if eq "TGI" .Values.FAQGEN_BACKEND }}
FAQGen_COMPONENT_NAME: "OPEAFAQGen_TGI"
FAQGen_COMPONENT_NAME: "OpeaFaqGenTgi"
{{- if not .Values.LLM_ENDPOINT }}
LLM_ENDPOINT: "http://{{ .Release.Name }}-tgi"
{{- end }}
{{- else if eq "vLLM" .Values.FAQGEN_BACKEND }}
FAQGen_COMPONENT_NAME: "OPEAFAQGen_vLLM"
FAQGen_COMPONENT_NAME: "OpeaFaqGenvLLM"
{{- if not .Values.LLM_ENDPOINT }}
LLM_ENDPOINT: "http://{{ .Release.Name }}-vllm"
{{- end }}
Expand Down

0 comments on commit ab51131

Please sign in to comment.