Skip to content

Commit

Permalink
fix: a new config
Browse files Browse the repository at this point in the history
  • Loading branch information
Chkhikvadze committed Nov 7, 2023
1 parent 9a86804 commit 6b7d41d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/server/utils/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from models.account import AccountModel
from typings.account import AccountOutput
from utils.configs.call_configs import call_configs
from utils.configs.dato_configs import dato_configs
from utils.configs.default import default_configs
from utils.configs.heyyou import heyyou_configs
from utils.configs.levanion_configs import levanion_configs
Expand All @@ -25,6 +26,8 @@ def convert_model_to_response(account_model: AccountModel) -> AccountOutput:
account_model.configs = call_configs
elif account_model.name == "Olga":
account_model.configs = olga_configs
elif account_model.name == "davit":
account_model.configs = dato_configs
else:
account_model.configs = default_configs

Expand Down
48 changes: 48 additions & 0 deletions apps/server/utils/configs/dato_configs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
dato_configs = {
"info": {"logo": "", "welcomeMessage": "Welcome to L3AGI"},
"naming": {
"home": "Home",
"agent": "Agent",
"team": "Team",
"datasource": "Data sources",
"models": "Model",
"discovery": "Discovery",
"chat": "Agents",
"toolkits": "Toolkits",
"schedules": "Schedules",
},
"modules": {
"home": {
"welcome_message": "Build Your Support AI Agents",
"submodules": {
"team": False,
"agent": True,
"discovery": True,
},
},
"chat": {
"active": True,
"label": "Multi-Agent",
"submodules": {
"team": False,
"agent": True,
"session": True,
},
},
"model": {
"active": True,
"label": "Fine-tunings",
"submodules": {
"models": True,
"fine-tuning": True,
},
},
"toolkit": True, # True
"datasource": True,
"discovery": False,
"Session": False,
"schedule": False,
"contact": False,
"group": False,
},
}
1 change: 0 additions & 1 deletion apps/ui/src/utils/useGetAccountModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export const useGetAccountModule = () => {
const values = getMainModule('group')
return values
}

const moduleNames = {
welcome: welcomeMessage,
chat: naming?.chat,
Expand Down

0 comments on commit 6b7d41d

Please sign in to comment.