Skip to content

Commit 5b07deb

Browse files
committed
tying hard coded up processor version until the default update on August 22, 2024 per documentation
1 parent a28806b commit 5b07deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentai/snippets/handle_response_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def process_document(
392392
file_path: str,
393393
mime_type: str,
394394
process_options: Optional[documentai.ProcessOptions] = None,
395-
processor_version: Optional[str] = None,
395+
processor_version: str = "pretrained-foundation-model-v2.0-2024-02-22",
396396
) -> documentai.Document:
397397
# You must set the `api_endpoint` if you use a location other than "us".
398398
client = documentai.DocumentProcessorServiceClient(

0 commit comments

Comments
 (0)