From 66c43612df8dc5943f7375c9016d7bbdad3602f8 Mon Sep 17 00:00:00 2001 From: HamadaSalhab Date: Tue, 22 Oct 2024 18:00:21 +0300 Subject: [PATCH] Add embed_instruction to embed docs task call --- agents-api/agents_api/routers/docs/create_doc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agents-api/agents_api/routers/docs/create_doc.py b/agents-api/agents_api/routers/docs/create_doc.py index 407a21d5f..606873a33 100644 --- a/agents-api/agents_api/routers/docs/create_doc.py +++ b/agents-api/agents_api/routers/docs/create_doc.py @@ -75,6 +75,7 @@ async def create_user_doc( doc_id=doc.id, title=doc.title, content=doc.content, + embed_instruction=data.embed_instruction, job_id=embed_job_id, background_tasks=background_tasks, ) @@ -105,6 +106,7 @@ async def create_agent_doc( doc_id=doc.id, title=doc.title, content=doc.content, + embed_instruction=data.embed_instruction, job_id=embed_job_id, background_tasks=background_tasks, )