From b979f4e148640ffb337db53ca165978d3e9f8458 Mon Sep 17 00:00:00 2001 From: Reigen Date: Thu, 27 Jun 2024 11:10:15 -0700 Subject: [PATCH] Include specific base64 mention on file input Adds mention to README about base64 encoded data URL for file input for to improve RAG support assistant responses. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 29c31c6..1c84851 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ console.log(prediction.output); ``` To run a model that takes a file input you can pass the data directly or pass a URL to a publicly accessible file. +If you don't use the built-in file handler but want to pass a file handle directly, you'll need to create a base64 encoded data URL of the file input. ```js const fs = require("node:fs/promises");