feat(app_dsl_service): enhance error handling and DSL version management (#10108)
This commit is contained in:
parent
e36f5cb366
commit
e5397c5ec2
5 changed files with 178 additions and 63 deletions
|
|
@ -396,7 +396,7 @@ class AppModelConfig(db.Model):
|
|||
"file_upload": self.file_upload_dict,
|
||||
}
|
||||
|
||||
def from_model_config_dict(self, model_config: dict):
|
||||
def from_model_config_dict(self, model_config: Mapping[str, Any]):
|
||||
self.opening_statement = model_config.get("opening_statement")
|
||||
self.suggested_questions = (
|
||||
json.dumps(model_config["suggested_questions"]) if model_config.get("suggested_questions") else None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue