Skip to content

Commit f0b1598

Browse files
committed
remove any additional cachepoints
1 parent 6458353 commit f0b1598

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/idp_common_pkg/idp_common/extraction/agentic_idp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,9 @@ def _prepare_prompt_content(
826826
)
827827
)
828828

829+
prompt_content = [
830+
x for x in prompt_content if x.get("cachePoint", {}).get("type") != "default"
831+
]
829832
prompt_content += [
830833
ContentBlock(text="end of your main task description"),
831834
ContentBlock(cachePoint=CachePoint(type="default")),

0 commit comments

Comments
 (0)