forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev_omi_llm_gateway_values.yaml
More file actions
154 lines (139 loc) · 3.32 KB
/
Copy pathdev_omi_llm_gateway_values.yaml
File metadata and controls
154 lines (139 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
replicaCount: 1
image:
repository: gcr.io/based-hardware-dev/llm-gateway
pullPolicy: Always
tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
serviceAccount:
create: true
automount: true
annotations: {}
name: ""
podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: "/metrics"
podLabels: {}
service:
type: ClusterIP
backendConfig: dev-llm-gateway-backend-config
port: 8080
annotations:
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"default": "dev-llm-gateway-backend-config"}'
ingress:
enabled: true
className: ""
annotations:
kubernetes.io/ingress.class: "gce-internal"
kubernetes.io/ingress.regional-static-ip-name: "dev-llm-gateway-ilb-ip-address"
kubernetes.io/ingress.allow-http: "true"
hosts:
- paths:
- path: /
pathType: Prefix
tls: []
env:
- name: OMI_LLM_GATEWAY_PROD
value: "true"
- name: OMI_LLM_GATEWAY_SERVICE_TOKEN
valueFrom:
secretKeyRef:
name: dev-omi-backend-secrets
key: OMI_LLM_GATEWAY_SERVICE_TOKEN
- name: LLM_GATEWAY_ALLOWED_CALLERS
value: "backend,omi-web,omi-admin-dashboard"
- name: OPENAI_API_KEY
valueFrom:
secretKeyRef:
name: dev-omi-backend-secrets
key: OPENAI_API_KEY
- name: ANTHROPIC_API_KEY
valueFrom:
secretKeyRef:
name: dev-omi-backend-secrets
key: ANTHROPIC_API_KEY
- name: OPENROUTER_API_KEY
valueFrom:
secretKeyRef:
name: dev-omi-backend-secrets
key: OPENROUTER_API_KEY
- name: PERPLEXITY_API_KEY
valueFrom:
secretKeyRef:
name: dev-omi-backend-secrets
key: PERPLEXITY_API_KEY
- name: METRICS_SECRET
valueFrom:
secretKeyRef:
name: dev-omi-backend-secrets
key: METRICS_SECRET
- name: GOOGLE_CLOUD_PROJECT
value: "based-hardware-dev"
- name: GCP_LOCATION
value: "us-central1"
- name: DD_SERVICE
value: "llm-gateway"
- name: DD_ENV
value: "dev"
- name: DD_TRACE_ENABLED
value: "false"
- name: LLM_GATEWAY_ACCOUNTING_ENABLED
value: "true"
- name: LLM_GATEWAY_ACCOUNTING_WRITE_TIMEOUT_SECONDS
value: "1"
- name: LLM_GATEWAY_ACCOUNTING_MAX_PENDING_TRACES
value: "1000"
- name: OMI_LLM_GATEWAY_OUTPUT_BUDGET_EXPERIMENTS
value: "public_shared_conversation_chat"
- name: LLM_GATEWAY_EXPOSE_PROVIDER_ERROR_DETAILS
value: "true"
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 1
memory: 1Gi
livenessProbe:
httpGet:
path: /health
port: 8080
failureThreshold: 3
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
exec:
command:
- sh
- -ec
- >-
curl --fail --silent --show-error --max-time 4
--header "Authorization: Bearer ${OMI_LLM_GATEWAY_SERVICE_TOKEN}"
--header "X-Omi-Service-Caller: backend"
http://127.0.0.1:8080/ready >/dev/null
failureThreshold: 3
periodSeconds: 10
timeoutSeconds: 5
startupProbe:
httpGet:
path: /health
port: 8080
failureThreshold: 30
periodSeconds: 5
autoscaling:
enabled: false
nodeSelector: {}
tolerations: []
affinity: {}