This commit is contained in:
Timothy Jaeryang Baek committed 2024-11-29 01:02:32 -08:00
1 parent a07213b5be
commit f547f1424c
4 files changed
+38 -39

No files matched your search

+2 -2
View File
@@ -2020,11 +2020,11 @@ async def generate_autocompletion(form_data: dict, user=Depends(get_verified_use
else:
template = DEFAULT_AUTOCOMPLETE_GENERATION_PROMPT_TEMPLATE
context = form_data.get("context")
type = form_data.get("type")
prompt = form_data.get("prompt")
content = autocomplete_generation_template(
template, prompt, context, {"name": user.name}
template, prompt, type, {"name": user.name}
)
payload = {