refac: pipe function support

This commit is contained in:
Timothy J. Baek
2024-06-20 04:47:40 -07:00
parent d6e4aef607
commit 59fa2f8f26
2 changed files with 10 additions and 4 deletions

View File

@@ -802,6 +802,12 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u
pipe = model.get("pipe")
if pipe:
form_data["user"] = {
"id": user.id,
"email": user.email,
"name": user.name,
"role": user.role,
}
def job():
pipe_id = form_data["model"]