summaryrefslogtreecommitdiff
path: root/config.local.json
blob: f798b2cc2aa02c0e60cf05b20e294bf2fa7ed81a (plain)
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
{
  "server": {
    "address_env": "AIGW_SERVER_ADDRESS",
    "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",
      "slug": "local-openai",
      "protocol": "openai",
      "wire_api": "chat_completions",
      "base_url_env": "MOCK_UPSTREAM_BASE_URL",
      "api_key_env": "MOCK_UPSTREAM_KEY"
    },
    {
      "id": "local-anthropic",
      "slug": "local-anthropic",
      "protocol": "anthropic",
      "wire_api": "messages",
      "base_url_env": "MOCK_UPSTREAM_BASE_URL",
      "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}
      ]
    }
  ]
}