From fc6f69833c8f50f1020c2968736989f0bf86a5f0 Mon Sep 17 00:00:00 2001 From: Alex Yang <himself65@outlook.com> Date: Mon, 9 Sep 2024 10:11:58 -0700 Subject: [PATCH] fix: example code (#1167) --- examples/deepinfra/embedding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/deepinfra/embedding.ts b/examples/deepinfra/embedding.ts index 809fd7fe6..adf494209 100644 --- a/examples/deepinfra/embedding.ts +++ b/examples/deepinfra/embedding.ts @@ -3,7 +3,7 @@ import { DeepInfraEmbedding } from "llamaindex"; async function main() { // API token can be provided as an environment variable too // using DEEPINFRA_API_TOKEN variable - const apiToken = "YOUR_API_TOKEN" ?? process.env.DEEPINFRA_API_TOKEN; + const apiToken = process.env.DEEPINFRA_API_TOKEN ?? "YOUR_API_TOKEN"; const model = "BAAI/bge-large-en-v1.5"; const embedModel = new DeepInfraEmbedding({ model, -- GitLab