-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkong.yaml
39 lines (35 loc) · 886 Bytes
/
kong.yaml
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
_format_version: "3.0"
plugins:
- name: http-log
config:
http_endpoint: http://logstash:8888
- name: key-auth
config:
key_names:
- Authorization
services:
- name: ai
url: https://localhost:32000
routes:
- name: openai-gpt4o
paths:
- "/gpt4o"
plugins:
- name: ai-proxy
config:
route_type: llm/v1/chat
model:
provider: openai
name: gpt-4o
options:
max_tokens: null
auth:
header_name: Authorization
header_value: "{vault://env/OPENAI_AUTH_HEADER}"
logging:
log_statistics: true
log_payloads: true
consumers:
- username: department-1
keyauth_credentials:
- key: "Bearer department-1-api-key"