user get_curr_org as the authentication function for generate_task api (#505)

This commit is contained in:
Shuchang Zheng
2024-06-24 16:03:05 -07:00
committed by GitHub
parent 6d2face353
commit e9846b9e3f

View File

@@ -670,7 +670,7 @@ async def get_workflow(
@base_router.post("/generate/task/")
async def generate_task(
data: GenerateTaskRequest,
current_org: Organization = Depends(org_auth_service.get_current_org_with_authentication),
current_org: Organization = Depends(org_auth_service.get_current_org),
) -> TaskGeneration:
llm_prompt = prompt_engine.load_prompt("generate-task", user_prompt=data.prompt)
try: