Skip to content

Commit 6497355

Browse files
committed
chore: docs
1 parent 0bb4da5 commit 6497355

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

samples/job_with_embedded_input_sample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function createJobWithEmbeddedInput(){
5656

5757
// Send the job:
5858
// An embedded input is a byte array encoded as a string in Base64, that's very handy for small to middle size files, for
59-
// bigger files can be a memory issue because you need to load the file in memory (load + encode).
59+
// bigger files can be a memory issue because you need to load the file in memory (load + encode), use submitJobFiles instead.
6060
const imageBytes = fs.readFileSync('samples/image.png');
6161
let configBytes = fs.readFileSync('samples/config.json');
6262
// With the info about the model (identifier), the model version (version string, input/output keys), you are ready to

samples/job_with_file_input_sample.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ async function createJobWithFileInput(){
5454
logger.info(` key ${output.name}, type ${output.mediaType}, description: ${output.description}`);
5555
}
5656
// Send the job:
57-
// An embedded input is a byte array encoded as a string in Base64, that's very handy for small to middle size files, for
58-
// bigger files can be a memory issue because you need to load the file in memory (load + encode).
57+
// A file input can be a byte array or any file path. This input type fits for any size files.
5958
const imagePath = 'samples/image.png';
6059
const configPath = 'samples/config.json';
6160
// With the info about the model (identifier), the model version (version string, input/output keys), you are ready to

0 commit comments

Comments
 (0)