-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathstreamv2.php
More file actions
executable file
·57 lines (46 loc) · 1.44 KB
/
streamv2.php
File metadata and controls
executable file
·57 lines (46 loc) · 1.44 KB
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
54
55
56
57
<?php
/* Legacy actions entry point */
$path = dirname((__FILE__)) . DIRECTORY_SEPARATOR;
require_once($path . "conf".DIRECTORY_SEPARATOR."conf.php");
require_once($path . "lib".DIRECTORY_SEPARATOR."model_dynmodel.php");
if (isset($_GET["profile"])) {
if (file_exists($path . "conf".DIRECTORY_SEPARATOR."conf_{$_GET["profile"]}.php")) {
// error_log("PROFILE: {$_GET["profile"]}");
require_once($path . "conf".DIRECTORY_SEPARATOR."conf_{$_GET["profile"]}.php");
}
$GLOBALS["CURRENT_CONNECTOR"]=DMgetCurrentModel();
}
if (DMgetCurrentModel()=="openai") {
$FUNCTIONS_ARE_ENABLED=true;
require($path . "main.php");
die();
} else if (DMgetCurrentModel()=="openaijson") {
$FUNCTIONS_ARE_ENABLED=true;
require($path . "main.php");
die();
} else if (DMgetCurrentModel()=="google_openaijson") {
$FUNCTIONS_ARE_ENABLED=true;
require($path . "main.php");
die();
} else if (DMgetCurrentModel()=="web_connector") {
$FUNCTIONS_ARE_ENABLED=true;
require($path . "main.php");
die();
} else if (DMgetCurrentModel()=="koboldcppjson") {
$FUNCTIONS_ARE_ENABLED=true;
require($path . "main.php");
die();
} else if (DMgetCurrentModel()=="openrouterjson") {
$FUNCTIONS_ARE_ENABLED=true;
require($path . "main.php");
die();
} else if (DMgetCurrentModel()=="koboldcpp--disabled") {
$FUNCTIONS_ARE_ENABLED=true;
require($path . "main.php");
die();
} else {
$FUNCTIONS_ARE_ENABLED=false;
require($path . "main.php");
die();
}
?>