mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-25 04:44:27 +08:00
fix: dataset query error. (#1244)
This commit is contained in:
parent
18c710c906
commit
54ff03c35d
@ -172,7 +172,7 @@ class AppModelConfig(db.Model):
|
||||
if model_config.get('sensitive_word_avoidance') else None
|
||||
self.model = json.dumps(model_config['model'])
|
||||
self.user_input_form = json.dumps(model_config['user_input_form'])
|
||||
self.dataset_query_variable = model_config['dataset_query_variable']
|
||||
self.dataset_query_variable = model_config.get('dataset_query_variable')
|
||||
self.pre_prompt = model_config['pre_prompt']
|
||||
self.agent_mode = json.dumps(model_config['agent_mode'])
|
||||
self.retriever_resource = json.dumps(model_config['retriever_resource']) \
|
||||
|
@ -354,7 +354,7 @@ class AppModelConfigService:
|
||||
"completion_params": config["model"]["completion_params"]
|
||||
},
|
||||
"user_input_form": config["user_input_form"],
|
||||
"dataset_query_variable": config["dataset_query_variable"],
|
||||
"dataset_query_variable": config.get('dataset_query_variable'),
|
||||
"pre_prompt": config["pre_prompt"],
|
||||
"agent_mode": config["agent_mode"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user