File tree Expand file tree Collapse file tree 4 files changed +3
-85
lines changed
upgrade_logic/business_objects Expand file tree Collapse file tree 4 files changed +3
-85
lines changed Original file line number Diff line number Diff line change 33from pydantic import BaseModel
44from submodules .model .business_objects import general
55import util
6- import config_handler
76from submodules .model import session
87
98app = FastAPI ()
@@ -74,12 +73,6 @@ def helper_function(function_name: str) -> responses.JSONResponse:
7473 )
7574
7675
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-
8376@app .get ("/healthcheck" )
8477def healthcheck () -> responses .PlainTextResponse :
8578 text = ""
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,15 +8,13 @@ class Service(Enum):
88 AC_EXEC_ENV = "AC_EXEC_ENV"
99 ADMIN_DASHBOARD = "ADMIN_DASHBOARD"
1010 AUTHORIZER = "AUTHORIZER"
11- CONFIG = "CONFIG"
1211 EMBEDDER = "EMBEDDER"
1312 ENTRY = "ENTRY"
1413 GATEWAY = "GATEWAY"
1514 LF_EXEC_ENV = "LF_EXEC_ENV"
1615 ML_EXEC_ENV = "ML_EXEC_ENV"
1716 MODEL_PROVIDER = "MODEL_PROVIDER"
1817 NEURAL_SEARCH = "NEURAL_SEARCH"
19- REFINERY = "REFINERY"
2018 TOKENIZER = "TOKENIZER"
2119 UI = "UI"
2220 UPDATER = "UPDATER"
@@ -41,11 +39,6 @@ class Service(Enum):
4139 "link" : "https://github.com/code-kern-ai/refinery-authorizer" ,
4240 "public_repo" : True ,
4341 },
44- Service .CONFIG : {
45- "name" : "Config" ,
46- "link" : "https://github.com/code-kern-ai/refinery-config" ,
47- "public_repo" : True ,
48- },
4942 Service .EMBEDDER : {
5043 "name" : "Embedder" ,
5144 "link" : "https://github.com/code-kern-ai/refinery-embedder" ,
@@ -81,11 +74,6 @@ class Service(Enum):
8174 "link" : "https://github.com/code-kern-ai/refinery-neural-search" ,
8275 "public_repo" : True ,
8376 },
84- Service .REFINERY : {
85- "name" : "Refinery" ,
86- "link" : "https://github.com/code-kern-ai/refinery" ,
87- "public_repo" : True ,
88- },
8977 Service .TOKENIZER : {
9078 "name" : "Tokenizer" ,
9179 "link" : "https://github.com/code-kern-ai/refinery-tokenizer" ,
Original file line number Diff line number Diff line change 11import os
22import re
33import requests
4- from config_handler import get_config_value
54from submodules .model .business_objects import (
65 attribute ,
76 embedding ,
@@ -96,11 +95,6 @@ def gateway_1_14_0_add_cognition_strategy_complexity() -> bool:
9695 )
9796 return False
9897
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-
10498 response = requests .post (
10599 f"{ cognition_url } /api/v1/strategies/internal/calculate_missing_complexities"
106100 )
@@ -191,15 +185,9 @@ def gateway_1_8_1() -> bool:
191185
192186
193187def __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
203191
204192 print (
205193 "Add default limit for organizations" ,
You can’t perform that action at this time.
0 commit comments