summaryrefslogtreecommitdiff
path: root/config.local.json
diff options
context:
space:
mode:
authorChia <Chia@93.nz>2026-08-04 19:58:52 +1200
committerChia <Chia@93.nz>2026-08-04 20:43:23 +1200
commit5b651488b081b65fda8a323f228e139adb79a35d (patch)
tree08baf40efb8fe103b32721cd991ff712323e3173 /config.local.json
Build AI gateway control plane and admin UI
Diffstat (limited to 'config.local.json')
-rw-r--r--config.local.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/config.local.json b/config.local.json
new file mode 100644
index 0000000..d4273b1
--- /dev/null
+++ b/config.local.json
@@ -0,0 +1,50 @@
+{
+ "server": {
+ "address": "127.0.0.1:18081",
+ "max_body_bytes": 16777216
+ },
+ "auth": {
+ "keys_env": "AIGW_API_KEYS",
+ "allow_anonymous": false
+ },
+ "upstream_http": {
+ "max_idle_connections": 128,
+ "max_idle_connections_per_host": 64,
+ "response_header_timeout_seconds": 10
+ },
+ "observability": {
+ "usage_buffer": 128,
+ "expose_metrics": true
+ },
+ "providers": [
+ {
+ "id": "local-openai",
+ "protocol": "openai",
+ "base_url": "http://127.0.0.1:18080/v1",
+ "api_key_env": "MOCK_UPSTREAM_KEY"
+ },
+ {
+ "id": "local-anthropic",
+ "protocol": "anthropic",
+ "base_url": "http://127.0.0.1:18080/v1",
+ "api_key_env": "MOCK_UPSTREAM_KEY"
+ }
+ ],
+ "models": [
+ {
+ "id": "demo/openai",
+ "owned_by": "local",
+ "routes": [
+ {"provider": "local-openai", "upstream_model": "mock-openai", "priority": 0, "weight": 1}
+ ]
+ },
+ {
+ "id": "demo/anthropic",
+ "owned_by": "local",
+ "routes": [
+ {"provider": "local-anthropic", "upstream_model": "mock-anthropic", "priority": 0, "weight": 1}
+ ]
+ }
+ ]
+}
+