From ef0863338ad9363a84dd3bd9c8719a0101c9784e Mon Sep 17 00:00:00 2001 From: ex0ns Date: Wed, 18 Dec 2024 23:11:18 +0100 Subject: [PATCH] feat: add py.typed for OpenAI and Gemini (#17295) --- .../llama-index-llms-gemini/llama_index/llms/gemini/BUILD | 5 +++++ .../llama-index-llms-gemini/llama_index/llms/gemini/py.typed | 0 .../llms/llama-index-llms-gemini/pyproject.toml | 2 +- .../llama-index-llms-openai/llama_index/llms/openai/BUILD | 5 +++++ .../llama-index-llms-openai/llama_index/llms/openai/py.typed | 0 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 llama-index-integrations/llms/llama-index-llms-gemini/llama_index/llms/gemini/py.typed create mode 100644 llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/py.typed diff --git a/llama-index-integrations/llms/llama-index-llms-gemini/llama_index/llms/gemini/BUILD b/llama-index-integrations/llms/llama-index-llms-gemini/llama_index/llms/gemini/BUILD index db46e8d6c978c..2e35f081cdee9 100644 --- a/llama-index-integrations/llms/llama-index-llms-gemini/llama_index/llms/gemini/BUILD +++ b/llama-index-integrations/llms/llama-index-llms-gemini/llama_index/llms/gemini/BUILD @@ -1 +1,6 @@ python_sources() + +resource( + name="py_typed", + source="py.typed", +) diff --git a/llama-index-integrations/llms/llama-index-llms-gemini/llama_index/llms/gemini/py.typed b/llama-index-integrations/llms/llama-index-llms-gemini/llama_index/llms/gemini/py.typed new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/llama-index-integrations/llms/llama-index-llms-gemini/pyproject.toml b/llama-index-integrations/llms/llama-index-llms-gemini/pyproject.toml index 95bde81ceb904..5db22b922c3b4 100644 --- a/llama-index-integrations/llms/llama-index-llms-gemini/pyproject.toml +++ b/llama-index-integrations/llms/llama-index-llms-gemini/pyproject.toml @@ -27,7 +27,7 @@ exclude = ["**/BUILD"] license = "MIT" name = "llama-index-llms-gemini" readme = "README.md" -version = "0.4.1" +version = "0.4.2" [tool.poetry.dependencies] python = ">=3.9,<4.0" diff --git a/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/BUILD b/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/BUILD index db46e8d6c978c..2e35f081cdee9 100644 --- a/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/BUILD +++ b/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/BUILD @@ -1 +1,6 @@ python_sources() + +resource( + name="py_typed", + source="py.typed", +) diff --git a/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/py.typed b/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/py.typed new file mode 100644 index 0000000000000..e69de29bb2d1d