File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
ALLOW_ORIGIN = " *"
2
2
STATIC_API_KEY_ENABLED = 0
3
- ENABLE_HTTPS = 0
4
3
ENABLE_PLUGIN = 0
4
+ ENABLE_HTTPS = 0
5
5
HTTPS_KEY_PATH = " */privkey.pem"
6
6
HTTPS_CERT_PATH = " */cert.pem"
7
7
HTTPS_CA_PATH = " */chain.pem"
8
8
SYSTEM_INSTRUCTION = " *"
9
+ LOAD_DEFAULT_DATASET = 0
10
+ DEFAULT_DATASET_NAME = " production_dataset"
9
11
AVAILABLE_APIS = " ALL"
Original file line number Diff line number Diff line change @@ -641,12 +641,14 @@ void saveSettings(int show_message) {
641
641
fprintf (f , ENV_PRODUCTION_FILE ,
642
642
allow_origin_name ,
643
643
static_api_key_enabled ,
644
- https_enabled ,
645
644
plugin_enabled ,
645
+ https_enabled ,
646
646
https_cert_path_container , https_privkey_name ,
647
647
https_cert_path_container , https_cert_name ,
648
648
https_cert_path_container , https_ca_name ,
649
649
system_instruction ,
650
+ default_dataset_enabled ,
651
+ default_dataset_name ,
650
652
api_enabled_str
651
653
);
652
654
fclose (f );
Original file line number Diff line number Diff line change 584
584
#define ENV_PRODUCTION_FILE \
585
585
"ALLOW_ORIGIN=\"%s\"\n"\
586
586
"STATIC_API_KEY_ENABLED=%d\n"\
587
- "ENABLE_HTTPS=%d\n"\
588
587
"ENABLE_PLUGIN=%d\n"\
588
+ "ENABLE_HTTPS=%d\n"\
589
589
"HTTPS_KEY_PATH=\"%s/%s\"\n"\
590
590
"HTTPS_CERT_PATH=\"%s/%s\"\n"\
591
591
"HTTPS_CA_PATH=\"%s/%s\"\n"\
592
592
"SYSTEM_INSTRUCTION=\"%s\"\n"\
593
+ "LOAD_DEFAULT_DATASET=%d\n"\
594
+ "DEFAULT_DATASET_NAME=\"%s\"\n"\
593
595
"AVAILABLE_APIS=\"%s\""
594
596
595
597
#define AVAILABLE_APIS_FORMAT "%d%d%d%d.%d%d.%d.%d%d.%d"
You can’t perform that action at this time.
0 commit comments