Skip to content

Commit 4fdcc47

Browse files
committed
fix(load_dotenv): remove load_dotenv()
1 parent 255be9f commit 4fdcc47

5 files changed

Lines changed: 1 addition & 12 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-llamaindex"
3-
version = "0.0.35"
3+
version = "0.0.36"
44
description = "UiPath LlamaIndex SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

samples/action-center-hitl-agent/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22

3-
from dotenv import load_dotenv
43
from llama_index.core.agent.workflow import AgentWorkflow
54
from llama_index.core.workflow import (
65
Context,
@@ -10,8 +9,6 @@
109

1110
from uipath_llamaindex.models import CreateActionEvent
1211

13-
load_dotenv()
14-
1512
llm = OpenAI(model="gpt-4o-mini")
1613

1714

samples/multi-agent/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22

3-
from dotenv import load_dotenv
43
from llama_index.core.agent.workflow import AgentWorkflow
54
from llama_index.core.workflow import (
65
Context,
@@ -10,8 +9,6 @@
109

1110
from uipath_llamaindex.models import InvokeProcessEvent
1211

13-
load_dotenv()
14-
1512
llm = OpenAI(model="gpt-4o-mini")
1613

1714

samples/quickstart-llamacloud/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import os
22

3-
from dotenv import load_dotenv
43
from llama_cloud_services import LlamaCloudIndex
54
from llama_index.core.agent.workflow import FunctionAgent
65
from llama_index.llms.openai import OpenAI
76
from pydantic import BaseModel, Field
87

9-
load_dotenv()
10-
118
# Initialize LlamaCloud Index connections
129
company_policy_index = LlamaCloudIndex(
1310
name=os.getenv("LLAMACLOUD_INDEX_1_NAME"),

src/uipath_llamaindex/_cli/cli_run.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from os import environ as env
44
from typing import Optional
55

6-
from dotenv import load_dotenv
76
from openinference.instrumentation.llama_index import (
87
LlamaIndexInstrumentor,
98
get_current_span,
@@ -18,7 +17,6 @@
1817
from ._utils._config import LlamaIndexConfig
1918

2019
logger = logging.getLogger(__name__)
21-
load_dotenv()
2220

2321

2422
def llamaindex_run_middleware(

0 commit comments

Comments
 (0)