新增工程信息下拉项
This commit is contained in:
@@ -5,7 +5,8 @@ from enum import Enum
|
||||
class BaseConfig(BaseModel):
|
||||
projectInfo:str = os.getenv("PROJECT_TITLE","会话提示消息")
|
||||
|
||||
def ParamterCfg(self):
|
||||
def ParamterCfg(self,**args):
|
||||
prjItems = args.get('projectInfo')
|
||||
questions = os.getenv("CONVERSATION_STARTERS", "dev")
|
||||
return{
|
||||
"opening_statement": self.projectInfo,
|
||||
@@ -38,7 +39,7 @@ class BaseConfig(BaseModel):
|
||||
"type": "select",
|
||||
"max_length": 48,
|
||||
"required": True,
|
||||
"options": self.projectInfo
|
||||
"options": prjItems
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user