fix(prompt): resolve KeyError and validation issues with custom prompt templates (#2848)

This commit is contained in:
Eric Wang
2025-07-17 16:10:19 +08:00
committed by GitHub
parent 83101f9096
commit db2e94348f
81 changed files with 64 additions and 47 deletions

View File

@@ -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,