Skip to content

Commit

Permalink
feat: pass AI API uri and some defaults (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
exu authored Nov 8, 2024
1 parent 6935ffb commit 4b731f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/testkube-cloud-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ spec:
value: {{ .Values.ui.authStrategy }}
{{- end }}
{{- if .Values.global.ai.enabled }}
- name: TK_AI_URI
value: {{ .Values.global.ai.uri }}
- name: TK_AI_KIND
value: {{ .Values.global.ai.kind }}
- name: TK_AI_MODEL
value: {{ .Values.global.ai.model }}
- name: TK_AI_KEY
{{- if .Values.global.ai.secretRef }}
valueFrom:
Expand Down
6 changes: 6 additions & 0 deletions charts/testkube-cloud-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ global:
ai:
# -- Enable Testkube AI keys for frontend
enabled: false
# -- API URI
uri: "https://ai.testkube.dev"
# -- LLM kind (openaai | ollama)
kind: "openai"
# -- LLM model - LLM need to support it
model: "gpt-4o-mini"
# -- Secret name
secretRef: testkube-ai
replicaCount: 1
Expand Down

0 comments on commit 4b731f0

Please sign in to comment.