From 9e4194faa1b5746cb2ba01b69660bd088abb0c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ianar=C3=A9=20S=C3=A9vi?= Date: Wed, 30 Jul 2025 17:51:53 +0200 Subject: [PATCH] :bookmark: Version 4.29.0-rc5 --- CHANGELOG.md | 5 +++++ docs/code_samples/default_v2.txt | 10 +++++----- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a7201a6..7c13aecb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## v4.29.0-rc5 - 2025-07-30 +### Changes +* :recycle: allow direct import of input sources + + ## v4.29.0-rc4 - 2025-07-29 ### Changes * :sparkles: add support for page count & mime type + fix syntaxes diff --git a/docs/code_samples/default_v2.txt b/docs/code_samples/default_v2.txt index 15c9e2e5..8e9f8b62 100644 --- a/docs/code_samples/default_v2.txt +++ b/docs/code_samples/default_v2.txt @@ -10,20 +10,20 @@ const modelId = "MY_MODEL_ID"; const mindeeClient = new mindee.ClientV2({ apiKey: apiKey }); // Load a file from disk -const inputSource = mindeeClient.sourceFromPath(filePath); -const params = { +const inputSource = new mindee.PathInput({ inputPath: filePath }); +const inferenceParams = { modelId: modelId, // If set to `true`, will enable Retrieval-Augmented Generation. rag: false }; -const apiResponse = mindeeClient.enqueueAndGetInference( +const response = mindeeClient.enqueueAndGetInference( inputSource, - params + inferenceParams ); // Handle the response Promise -apiResponse.then((resp) => { +response.then((resp) => { // print a string summary console.log(resp.inference.toString()); }); diff --git a/package-lock.json b/package-lock.json index 100ea392..80a29e13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mindee", - "version": "4.29.0-rc4", + "version": "4.29.0-rc5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mindee", - "version": "4.29.0-rc4", + "version": "4.29.0-rc5", "license": "MIT", "dependencies": { "@cantoo/pdf-lib": "^2.3.2", diff --git a/package.json b/package.json index 6161a398..03ccc826 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mindee", - "version": "4.29.0-rc4", + "version": "4.29.0-rc5", "description": "Mindee Client Library for Node.js", "main": "src/index.js", "bin": "bin/mindee.js",