Skip to content

Commit

Permalink
Add openai api key env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjan-stha committed Dec 13, 2024
1 parent d1808db commit 03d9266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/templates/embedding_model/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ spec:
value: {{ .Values.embeddingModel.env.EMBEDDING_MODEL_TYPE | quote }}
- name: EMBEDDING_MODEL_VECTOR_SIZE
value: {{ .Values.embeddingModel.env.EMBEDDING_MODEL_VECTOR_SIZE | quote }}
- name: OPENAI_API_KEY
value: {{ .Values.embeddingModel.env.OPENAI_API_KEY | quote }}
volumes:
- name: downloaded-models
persistentVolumeClaim:
Expand Down
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ embeddingModel:
EMBEDDING_MODEL_NAME: "sentence-transformers/gtr-t5-large"
EMBEDDING_MODEL_TYPE: 1
EMBEDDING_MODEL_VECTOR_SIZE: 768
OPENAI_API_KEY: test

env:
# APP_ENVIRONMENT:
Expand Down

0 comments on commit 03d9266

Please sign in to comment.