From 5c6c9cd6461d1733f623ffdc4a320e72d33c3b4c Mon Sep 17 00:00:00 2001 From: "yg.choi" Date: Fri, 11 Jul 2025 12:21:30 +0900 Subject: [PATCH 1/3] fix. pip package update --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index e9e727f..768708a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,11 +6,11 @@ pydantic-core==2.20.1 typing-extensions==4.12.2 # Plugin-specific -dify-plugin==0.0.1b73 +dify-plugin==0.4.1 # Logging and formatting pyyaml==6.0.2 # Optional utilities -httpx==0.27.2 # For async HTTP requests +httpx==0.28.1 # For async HTTP requests anyio==4.8.0 # For async support From e02ba04591f9007b1fc091c2dae7768fa056c859 Mon Sep 17 00:00:00 2001 From: "yg.choi" Date: Fri, 11 Jul 2025 12:22:07 +0900 Subject: [PATCH 2/3] fix. upstage api address update --- tools/upstage-documentparse.py | 2 +- tools/upstage_client.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/upstage-documentparse.py b/tools/upstage-documentparse.py index 75bf14b..459b298 100644 --- a/tools/upstage-documentparse.py +++ b/tools/upstage-documentparse.py @@ -40,7 +40,7 @@ def __init__(self, *args, **kwargs): self.output_dir = "temp_output" # Upstage Document Parse Model # https://console.upstage.ai/docs/capabilities/document-parse/asynchronous - self.model = "document-parse-250305" + self.model = "document-parse-250618" # Debug mode self.debug = False # Set up cache directory diff --git a/tools/upstage_client.py b/tools/upstage_client.py index 9a85740..d4f2d7a 100644 --- a/tools/upstage_client.py +++ b/tools/upstage_client.py @@ -38,7 +38,7 @@ class UpstageDocumentParseClient: def __init__( self, api_key: Optional[str] = None, - base_url: str = "https://api.upstage.ai/v1/document-ai", + base_url: str = "https://api.upstage.ai/v1/document-digitization", ocr: str = "auto", coordinates: str = "false", output_formats: Optional[List[str]] = None, @@ -53,7 +53,7 @@ def __init__( Args: api_key (Optional[str]): API key for authentication. If not provided, will try to use UPSTAGE_API_KEY environment variable. - base_url (str): Base URL for the API. Defaults to "https://api.upstage.ai/v1/document-ai". + base_url (str): Base URL for the API. Defaults to "https://api.upstage.ai/v1/document-digitization". ocr (str): OCR mode - "auto" or "force". In "auto" mode, OCR is applied only to image documents. In "force" mode, all documents are converted to images before OCR. Defaults to "auto". coordinates (str): Whether to return coordinates of bounding boxes. Defaults to "false". @@ -216,7 +216,7 @@ def request( ) return self.request_id - url = f"{self.base_url}/async/document-parse" + url = f"{self.base_url}/async" self.logger.debug(f"API request URL: {url}") with open(file_path, "rb") as f: @@ -688,7 +688,7 @@ def process_document( Returns: Dict[str, str]: Dictionary mapping format names to exported file paths """ - print(f"process_document: {file_path}") + self.logger.info(f"process_document: {file_path}") cache_key = self._generate_cache_key(file_path, export_formats) self.logger.info(f"cache_key: {cache_key}") self.logger.info(f"self._cache: {self._cache}") From 8328b0e715872f31db6fe2613e8a41157047b265 Mon Sep 17 00:00:00 2001 From: "yg.choi" Date: Fri, 11 Jul 2025 16:27:20 +0900 Subject: [PATCH 3/3] fix. upstage api model version update --- provider/upstage-documentparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/upstage-documentparse.py b/provider/upstage-documentparse.py index c508f09..2ad8d98 100644 --- a/provider/upstage-documentparse.py +++ b/provider/upstage-documentparse.py @@ -15,7 +15,7 @@ def _validate_credentials(self, credentials: dict[str, Any]) -> None: api_key=api_key, debug=True, output_dir="test_output", - model="document-parse-250305", + model="document-parse-250618", ) else: raise ToolProviderCredentialValidationError(