diff options
Diffstat (limited to 'config.local.json')
| -rw-r--r-- | config.local.json | 50 |
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} + ] + } + ] +} + |
