Skip to content

Commit 6549069

Browse files
docs: PR comments
1 parent 007c68a commit 6549069

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

docs/api_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Usage Example
3636
// Send image for classification
3737
await sdk.sendClassifyRequest({
3838
imageStream: fs.createReadStream('image.jpg'),
39-
format: 'JPEG',
39+
format: ImageFormats.JPEG,
4040
});
4141
4242
sdk.on('data', (response) => {

docs/hashing.rst

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,3 @@ Hashing Utilities
44
Provides functions to compute MD5 and SHA1 hashes from a readable stream.
55

66
.. js:autofunction:: computeHashesFromStream
7-
8-
**Usage Example:**
9-
10-
.. code-block:: typescript
11-
12-
import { computeHashesFromStream } from './hashing';
13-
const result = await computeHashesFromStream(stream);
14-
// result.md5, result.sha1, result.data
15-
16-
**Parameters:**
17-
18-
* `stream`: Node.js readable stream
19-
* `encoding`: Encoding type for the image data (default: UNCOMPRESSED)
20-
21-
**Returns:**
22-
23-
* Object containing MD5 hash, SHA1 hash, and image buffer.

0 commit comments

Comments
 (0)