Skip to content

Commit 9366fcb

Browse files
authored
Merge pull request #17 from fhswf/rate-limit
Implement rate limit
2 parents 62f6cfb + 5da66d6 commit 9366fcb

File tree

8 files changed

+619
-34
lines changed

8 files changed

+619
-34
lines changed

k8s/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ data:
33
api.base_url: /openai/ui/index.html
44
api.prefix: /v1
55
api.url: https://api.openai.com/v1
6+
api.rate_limit: 200
67
node.extra_ca_certs: |-
78
-----BEGIN CERTIFICATE-----
89
MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEb

k8s/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ spec:
5151
secretKeyRef:
5252
key: api.key
5353
name: proxy-secrets
54+
- name: RATE_LIMIT
55+
valueFrom:
56+
configMapKeyRef:
57+
key: api.rate_limit
58+
name: proxy-config
5459
- name: BASE_URL
5560
valueFrom:
5661
configMapKeyRef:

0 commit comments

Comments
 (0)