feat: support optional query content (#1097)

Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
This commit is contained in:
Joel 2023-09-10 00:12:34 +08:00 committed by GitHub
commit 2d5ad0d208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 547 additions and 289 deletions

View file

@ -38,7 +38,18 @@ model_templates = {
"presence_penalty": 0,
"frequency_penalty": 0
}
})
}),
'user_input_form': json.dumps([
{
"paragraph": {
"label": "Query",
"variable": "query",
"required": True,
"default": ""
}
}
]),
'pre_prompt': '{{query}}'
}
},