1+ {
2+ "endpoints" : {
3+ "example-openai" : {
4+ "endpoint" : " https://api.openai.com/v1" ,
5+ "api_key_env" : " OPENAI_API_KEY" ,
6+ "supported_client" : " openai" ,
7+ "list_models_cmd" : " curl -s -H \" Authorization: Bearer $API_KEY\" $endpoint/models | jq -r '.data[].id'" ,
8+ "list_of_models" : [" gpt-4" , " gpt-3.5-turbo" ],
9+ "keep_proxy_config" : false ,
10+ "use_proxy" : true ,
11+ "enabled" : true
12+ },
13+ "example-anthropic" : {
14+ "endpoint" : " https://api.anthropic.com" ,
15+ "api_key_env" : " ANTHROPIC_API_KEY" ,
16+ "supported_client" : " claude" ,
17+ "list_models_cmd" : " curl -s -H \" x-api-key: $API_KEY\" -H \" anthropic-version: 2023-06-01\" $endpoint/v1/messages --data '{\" model\" : \" claude-3-haiku-20240307\" , \" max_tokens\" : 1}' | jq -r '.model // \" claude-3-haiku-20240307\" '" ,
18+ "list_of_models" : [" claude-3-opus-20240229" , " claude-3-sonnet-20240229" , " claude-3-haiku-20240307" ],
19+ "keep_proxy_config" : false ,
20+ "use_proxy" : false ,
21+ "enabled" : true
22+ },
23+ "disabled-example" : {
24+ "endpoint" : " https://disabled.example.com" ,
25+ "api_key_env" : " DISABLED_API_KEY" ,
26+ "supported_client" : " openai" ,
27+ "list_models_cmd" : " echo 'gpt-4'" ,
28+ "list_of_models" : [" gpt-4" ],
29+ "keep_proxy_config" : false ,
30+ "use_proxy" : false ,
31+ "enabled" : false
32+ }
33+ },
34+ "common" : {
35+ "http_proxy" : " " ,
36+ "https_proxy" : " " ,
37+ "cache_ttl_seconds" : " 3600"
38+ }
39+ }
0 commit comments