You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The directory to store temporary files, defaults to some named folder in system's temp directory. If already exists, the contents will be deleted before zerox uses it.
285
291
-**custom_system_prompt** (str, optional):
286
-
The system prompt to use for the model, this overrides the default system prompt of zerox.Generally it is not required unless you want some specific behaviour. When set, it will raise a friendly warning. Defaults to None.
292
+
The system prompt to use for the model, this overrides the default system prompt of zerox. Generally it is not required unless you want some specific behaviour. When set, it will raise a friendly warning. Defaults to None.
293
+
-**custom_role** (str, optional):
294
+
The role assigned to the model can be customized, overriding the default system role. Typically, this isn't necessary unless you need to specify a particular role for a given LLM. If you choose to set it, a friendly warning will be displayed. By default, this option is set to None.
:param custom_system_prompt: The system prompt to use for the model, this overrides the default system prompt of zerox. Generally it is not required unless you want some specific behaviour. When set, it will raise a friendly warning, defaults to None
59
60
:type custom_system_prompt: str, optional
61
+
:param custom_role: The role assigned to the model can be customized, overriding the default system role. Typically, this isn't necessary unless you need to specify a particular role for a given LLM. If you choose to set it, a friendly warning will be displayed. By default, this option is set to None.
62
+
:type custom_role: str, optional
60
63
:param select_pages: Pages to process, can be a single page number or an iterable of page numbers, defaults to None
61
64
:type select_pages: int or Iterable[int], optional
62
65
@@ -82,6 +85,10 @@ async def zerox(
82
85
ifcustom_system_prompt:
83
86
vision_model.system_prompt=custom_system_prompt
84
87
88
+
# override the system role if a custom role is provided
89
+
ifcustom_role:
90
+
vision_model.system_role=custom_role
91
+
85
92
# Check if both maintain_format and select_pages are provided
0 commit comments