File tree 4 files changed +3
-85
lines changed
upgrade_logic/business_objects
4 files changed +3
-85
lines changed Original file line number Diff line number Diff line change 3
3
from pydantic import BaseModel
4
4
from submodules .model .business_objects import general
5
5
import util
6
- import config_handler
7
6
from submodules .model import session
8
7
9
8
app = FastAPI ()
@@ -74,12 +73,6 @@ def helper_function(function_name: str) -> responses.JSONResponse:
74
73
)
75
74
76
75
77
- @app .put ("/config_changed" )
78
- def config_changed () -> responses .PlainTextResponse :
79
- config_handler .refresh_config ()
80
- return responses .PlainTextResponse (status_code = status .HTTP_200_OK )
81
-
82
-
83
76
@app .get ("/healthcheck" )
84
77
def healthcheck () -> responses .PlainTextResponse :
85
78
text = ""
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,15 +8,13 @@ class Service(Enum):
8
8
AC_EXEC_ENV = "AC_EXEC_ENV"
9
9
ADMIN_DASHBOARD = "ADMIN_DASHBOARD"
10
10
AUTHORIZER = "AUTHORIZER"
11
- CONFIG = "CONFIG"
12
11
EMBEDDER = "EMBEDDER"
13
12
ENTRY = "ENTRY"
14
13
GATEWAY = "GATEWAY"
15
14
LF_EXEC_ENV = "LF_EXEC_ENV"
16
15
ML_EXEC_ENV = "ML_EXEC_ENV"
17
16
MODEL_PROVIDER = "MODEL_PROVIDER"
18
17
NEURAL_SEARCH = "NEURAL_SEARCH"
19
- REFINERY = "REFINERY"
20
18
TOKENIZER = "TOKENIZER"
21
19
UI = "UI"
22
20
UPDATER = "UPDATER"
@@ -41,11 +39,6 @@ class Service(Enum):
41
39
"link" : "https://github.com/code-kern-ai/refinery-authorizer" ,
42
40
"public_repo" : True ,
43
41
},
44
- Service .CONFIG : {
45
- "name" : "Config" ,
46
- "link" : "https://github.com/code-kern-ai/refinery-config" ,
47
- "public_repo" : True ,
48
- },
49
42
Service .EMBEDDER : {
50
43
"name" : "Embedder" ,
51
44
"link" : "https://github.com/code-kern-ai/refinery-embedder" ,
@@ -81,11 +74,6 @@ class Service(Enum):
81
74
"link" : "https://github.com/code-kern-ai/refinery-neural-search" ,
82
75
"public_repo" : True ,
83
76
},
84
- Service .REFINERY : {
85
- "name" : "Refinery" ,
86
- "link" : "https://github.com/code-kern-ai/refinery" ,
87
- "public_repo" : True ,
88
- },
89
77
Service .TOKENIZER : {
90
78
"name" : "Tokenizer" ,
91
79
"link" : "https://github.com/code-kern-ai/refinery-tokenizer" ,
Original file line number Diff line number Diff line change 1
1
import os
2
2
import re
3
3
import requests
4
- from config_handler import get_config_value
5
4
from submodules .model .business_objects import (
6
5
attribute ,
7
6
embedding ,
@@ -96,11 +95,6 @@ def gateway_1_14_0_add_cognition_strategy_complexity() -> bool:
96
95
)
97
96
return False
98
97
99
- is_managed = get_config_value ("is_managed" )
100
- if not is_managed :
101
- print ("Not managed. Skipping cognition strategy complexity update." )
102
- return False
103
-
104
98
response = requests .post (
105
99
f"{ cognition_url } /api/v1/strategies/internal/calculate_missing_complexities"
106
100
)
@@ -191,15 +185,9 @@ def gateway_1_8_1() -> bool:
191
185
192
186
193
187
def __gateway_1_8_1_add_organization_limits () -> bool :
194
- is_managed = get_config_value ("is_managed" )
195
- if is_managed :
196
- max_rows = 50000
197
- max_cols = 25
198
- max_char_count = 100000
199
- else :
200
- max_rows = get_config_value ("max_rows" ) or 50000
201
- max_cols = get_config_value ("max_cols" ) or 25
202
- max_char_count = get_config_value ("max_char_count" ) or 100000
188
+ max_rows = 50000
189
+ max_cols = 25
190
+ max_char_count = 100000
203
191
204
192
print (
205
193
"Add default limit for organizations" ,
You can’t perform that action at this time.
0 commit comments