Skip to content

Commit

Permalink
Merge pull request #57 from aitomatic/dep-upgrade
Browse files Browse the repository at this point in the history
upgrade core deps & fix backward-incompatible API calls
  • Loading branch information
TheVinhLuong102 authored Dec 11, 2023
2 parents 800db44 + 5805a5d commit e358d3a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion openssa/core/ooda_rag/custom.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from llama_index import Document, Response, SimpleDirectoryReader, ServiceContext, OpenAIEmbedding
from llama_index.evaluation import DatasetGenerator
from llama_index.llms.base import LLM as RAGLLM
from llama_index.llms.llm import LLM as RAGLLM
from llama_index.node_parser import SimpleNodeParser

from openssa.core.backend.abstract_backend import AbstractBackend
Expand Down
2 changes: 1 addition & 1 deletion openssa/integrations/llama_index/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from llama_index.llms import OpenAI
from llama_index.indices.base import BaseIndex
from llama_index.indices.query.base import BaseQueryEngine
from llama_index.llms.base import LLM as RAGLLM
from llama_index.llms.llm import LLM as RAGLLM
from llama_index.storage import StorageContext
from openssa.core.backend.rag_backend import AbstractRAGBackend

Expand Down
2 changes: 1 addition & 1 deletion openssa/integrations/llama_index/ssm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from llama_index.llms.base import LLM as RAGLLM
from llama_index.llms.llm import LLM as RAGLLM
from llama_index.llms import OpenAI, AzureOpenAI
from openssa.integrations.llama_index.backend import Backend as LlamaIndexBackend
from openssa.integrations.openai.ssm import GPT3ChatCompletionSLM
Expand Down
2 changes: 1 addition & 1 deletion openssa/utils/llm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from llama_index import ServiceContext
from llama_index.embeddings import AzureOpenAIEmbedding, OpenAIEmbedding
from llama_index.llms import AzureOpenAI, OpenAI
from llama_index.llms.base import LLM
from llama_index.llms.llm import LLM
from llama_index.llms.openai_utils import ALL_AVAILABLE_MODELS, CHAT_MODELS

# exetend ALL_AVAILABLE_MODELS to include the models we want to use
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ python = ">=3.10,<3.12"
# OpenAI & related
openai = ">=1.3"
# LlamaIndex & related
llama-index = ">=0.9"
llama-hub = ">=0.0.55"
llama-index = ">=0.9.14" # should keep up-to-date with Llama-Index's minor releases (often backward-incompatible)
llama-hub = ">=0.0.56"
docx2txt = ">=0.8" # for reading .docx files
pypdf = ">=3.17" # for reading .pdf files
pycryptodome = ">=3.19" # for reading .pdf files: PyCryptodome is required for AES algorithm
Expand All @@ -74,7 +74,7 @@ click = ">=8.1"
pydantic = ">=2.5"
python-dotenv = ">=1.0"
httpx = ">=0.25"
google-api-python-client = ">=2.109"
google-api-python-client = ">=2.110"

# optional dependencies required by extras
pylint = {version = ">=3.0", optional = true}
Expand All @@ -84,7 +84,7 @@ python-pptx = {version = ">=0.6", optional = true}
streamlit = {version = ">=1.29", optional = true}
streamlit-mic-recorder = {version = ">=0.0.4", optional = true}
torch = {version = ">=2.0", optional = true}
transformers = {version = ">=4.35", optional = true}
transformers = {version = ">=4.36", optional = true}

[tool.poetry.extras]
lint = [
Expand Down

0 comments on commit e358d3a

Please sign in to comment.