mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-20 17:09:00 +00:00
fix(prompt): resolve KeyError and validation issues with custom prompt templates (#2848)
This commit is contained in:
@@ -108,6 +108,10 @@ class ServeDao(BaseDao[ServeEntity, ServeRequest, ServerResponse]):
|
||||
prompt_name=entity.prompt_name,
|
||||
prompt_code=entity.prompt_code,
|
||||
content=entity.content,
|
||||
response_schema=entity.response_schema,
|
||||
input_variables=entity.input_variables,
|
||||
model=entity.model,
|
||||
prompt_language=entity.prompt_language,
|
||||
prompt_desc=entity.prompt_desc,
|
||||
user_code=entity.user_code,
|
||||
user_name=entity.user_name,
|
||||
|
Reference in New Issue
Block a user