Skip to content

Commit bd81bd4

Browse files
committed
feat(llm): add agenthub
1 parent cbcbc4b commit bd81bd4

3 files changed

Lines changed: 1832 additions & 1638 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[project]
22
name = "uipath-llamaindex"
3-
version = "0.0.28"
3+
version = "0.0.29"
44
description = "UiPath LlamaIndex SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"
77
dependencies = [
88
"llama-index>=0.12.38",
9-
"llama-index-embeddings-azure-openai>=0.3.8",
10-
"llama-index-llms-azure-openai>=0.3.2",
9+
"llama-index-embeddings-azure-openai>=0.3.9",
10+
"llama-index-llms-azure-openai>=0.3.4",
1111
"openinference-instrumentation-llama-index>=4.3.0",
12-
"uipath>=2.0.71, <2.1.0",
12+
"uipath>=2.0.75, <2.1.0",
1313
]
1414
classifiers = [
1515
"Development Status :: 3 - Alpha",

src/uipath_llamaindex/llms/_openai_llms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import Any, Union
44

55
from llama_index.llms.azure_openai import AzureOpenAI # type: ignore
6+
from uipath.utils import EndpointManager
67

78

89
class OpenAIModel(Enum):
@@ -42,7 +43,7 @@ def __init__(
4243
defaults = {
4344
"model": model_value,
4445
"deployment_name": model_value,
45-
"azure_endpoint": f"{base_url}/llmgateway_/",
46+
"azure_endpoint": f"{base_url}/{EndpointManager.get_passthrough_endpoint().format(model=model, api_version=api_version)}",
4647
"api_key": os.environ.get("UIPATH_ACCESS_TOKEN"),
4748
"api_version": api_version,
4849
"is_chat_model": True,

0 commit comments

Comments
 (0)