@@ -34,75 +34,52 @@ static const std::unordered_map<std::string, ApiConfigurationMetadata>
3434 CONFIGURATIONS = {
3535 {" cors" ,
3636 ApiConfigurationMetadata{
37- " cors" ,
38- " Cross-Origin Resource Sharing configuration." ,
39- " CORS" ,
40- " [on|off]" ,
41- " on" }},
37+ " cors" , " Cross-Origin Resource Sharing configuration." , " CORS" ,
38+ " [on|off]" , " on" }},
4239 {" allowed_origins" ,
4340 ApiConfigurationMetadata{
4441 " allowed_origins" ,
4542 " Allowed origins for CORS. Comma separated. E.g. "
46- " http://localhost,https://cortex.so" ,
47- " CORS" ,
48- " comma separated" ,
49- " *" ,
50- true }},
51- {" proxy_url" , ApiConfigurationMetadata{" proxy_url" ,
52- " Proxy URL" ,
53- " Proxy" ,
54- " string" ,
55- " " }},
56- {" proxy_username" , ApiConfigurationMetadata{" proxy_username" ,
57- " Proxy Username" ,
58- " Proxy" ,
59- " string" ,
60- " " }},
61- {" proxy_password" , ApiConfigurationMetadata{" proxy_password" ,
62- " Proxy Password" ,
63- " Proxy" ,
64- " string" ,
65- " " }},
43+ " http://localhost,https://cortex.so" ,
44+ " CORS" , " comma separated" , " *" , true }},
45+ {" proxy_url" , ApiConfigurationMetadata{" proxy_url" , " Proxy URL" ,
46+ " Proxy" , " string" , " " }},
47+ {" proxy_username" ,
48+ ApiConfigurationMetadata{" proxy_username" , " Proxy Username" , " Proxy" ,
49+ " string" , " " }},
50+ {" proxy_password" ,
51+ ApiConfigurationMetadata{" proxy_password" , " Proxy Password" , " Proxy" ,
52+ " string" , " " }},
6653 {" verify_proxy_ssl" ,
67- ApiConfigurationMetadata{" verify_proxy_ssl" ,
68- " Verify SSL for proxy" ,
69- " Proxy" ,
70- " [on|off]" ,
71- " on" }},
54+ ApiConfigurationMetadata{" verify_proxy_ssl" , " Verify SSL for proxy" ,
55+ " Proxy" , " [on|off]" , " on" }},
7256 {" verify_proxy_host_ssl" ,
7357 ApiConfigurationMetadata{" verify_proxy_host_ssl" ,
74- " Verify SSL for proxy" ,
75- " Proxy" ,
76- " [on|off]" ,
58+ " Verify SSL for proxy" , " Proxy" , " [on|off]" ,
7759 " on" }},
78- {" no_proxy" , ApiConfigurationMetadata{" no_proxy" ,
79- " No proxy for hosts" ,
80- " Proxy" ,
81- " string" ,
82- " " }},
83- {" verify_peer_ssl" , ApiConfigurationMetadata{" verify_peer_ssl" ,
84- " Verify peer SSL" ,
85- " Proxy" ,
86- " [on|off]" ,
87- " on" }},
88- {" verify_host_ssl" , ApiConfigurationMetadata{" verify_host_ssl" ,
89- " Verify host SSL" ,
90- " Proxy" ,
91- " [on|off]" ,
92- " on" }},
60+ {" no_proxy" , ApiConfigurationMetadata{" no_proxy" , " No proxy for hosts" ,
61+ " Proxy" , " string" , " " }},
62+ {" verify_peer_ssl" ,
63+ ApiConfigurationMetadata{" verify_peer_ssl" , " Verify peer SSL" , " Proxy" ,
64+ " [on|off]" , " on" }},
65+ {" verify_host_ssl" ,
66+ ApiConfigurationMetadata{" verify_host_ssl" , " Verify host SSL" , " Proxy" ,
67+ " [on|off]" , " on" }},
9368 {" huggingface_token" ,
94- ApiConfigurationMetadata{/* .name = */ " huggingface_token" ,
95- /* .desc = */ " HuggingFace token to pull models" ,
69+ ApiConfigurationMetadata{
70+ /* .name = */ " huggingface_token" ,
71+ /* .desc = */ " HuggingFace token to pull models" ,
72+ /* .group = */ " Token" ,
73+ /* .accept_value = */ " string" ,
74+ /* .default_value = */ " " ,
75+ /* .allow_empty = */ true }},
76+ {" github_token" ,
77+ ApiConfigurationMetadata{/* .name = */ " github_token" ,
78+ /* .desc = */ " Github token" ,
9679 /* .group = */ " Token" ,
9780 /* .accept_value = */ " string" ,
9881 /* .default_value = */ " " ,
9982 /* .allow_empty = */ true }},
100- {" github_token" , ApiConfigurationMetadata{/* .name = */ " github_token" ,
101- /* .desc = */ " Github token" ,
102- /* .group = */ " Token" ,
103- /* .accept_value = */ " string" ,
104- /* .default_value = */ " " ,
105- /* .allow_empty = */ true }},
10683};
10784
10885class ApiServerConfiguration {
0 commit comments