From e98b141a8558f7bf12516162610938df5668d012 Mon Sep 17 00:00:00 2001 From: Mathieu Giorgino Date: Fri, 29 Nov 2024 18:56:16 +0100 Subject: [PATCH] chore(community): jira doc loader example: host and projectKey as env var --- examples/src/document_loaders/jira.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/src/document_loaders/jira.ts b/examples/src/document_loaders/jira.ts index e43ebcb4363a..3da14560e658 100644 --- a/examples/src/document_loaders/jira.ts +++ b/examples/src/document_loaders/jira.ts @@ -1,12 +1,14 @@ import { JiraProjectLoader } from "@langchain/community/document_loaders/web/jira"; +const host = process.env.JIRA_HOST; const username = process.env.JIRA_USERNAME; const accessToken = process.env.JIRA_ACCESS_TOKEN; +const projectKey = process.env.JIRA_PROJECT_KEY; if (username && accessToken) { const loader = new JiraProjectLoader({ - host: "https://example.atlassian.net/wiki", - projectKey: "PI", + host, + projectKey, username, accessToken, });