Skip to content

Commit

Permalink
Closes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
gotsysdba committed Jan 20, 2025
1 parent c021b5f commit 7f241d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helm/charts/oaim-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ spec:
name: {{ .models.cohere.secretName }}
key: {{ .models.cohere.secretKey | default "apiKey" }}
{{- end }}
{{- if and .models.ollama .models.ollama.urlPort }}
- name: ON_PREM_OLLAMA_URL
value: {{ .models.ollama.urlPort }}
{{- end }}
{{- if and .models.ollama .models.huggingface.urlPort }}
- name: ON_PREM_HF_URL
value: {{ .models.huggingface.urlPort }}
{{- end }}
{{- end }}
{{- end }}
volumeMounts:
Expand Down
6 changes: 6 additions & 0 deletions helm/charts/oaim-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ models:
cohere:
secretName: ""
secretKey: ""
ollama:
# -- e.g http://ollama.ollama.svc.cluster.local:11434
urlPort: ""
huggingface:
# -- e.g http://hf.hf.svc.cluster.local:8080
urlPort: ""

# -- Additional volumes on the output Deployment definition.
volumes: []
Expand Down

0 comments on commit 7f241d9

Please sign in to comment.