# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=hatchling PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 slonko-test DESCRIPTION="llama-index llms openai integration" HOMEPAGE=" https://github.com/run-llama/llama_index https://pypi.org/project/llama-index-llms-openai/ " # The sdist ships no tests; pin the llama_index monorepo commit that # carries this version (the last touching this package's pyproject). SRC_URI=" https://github.com/run-llama/llama_index/archive/5b7b6e323e1da3edd787a2104a89257c14f026d0.tar.gz -> ${P}.gh.tar.gz test? ( https://openaipublic.blob.core.windows.net/gpt-2/encodings/main/vocab.bpe -> tiktoken-gpt2-vocab.bpe https://openaipublic.blob.core.windows.net/gpt-2/encodings/main/encoder.json -> tiktoken-gpt2-encoder.json https://openaipublic.blob.core.windows.net/encodings/r50k_base.tiktoken -> tiktoken-r50k_base.tiktoken https://openaipublic.blob.core.windows.net/encodings/p50k_base.tiktoken -> tiktoken-p50k_base.tiktoken https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken -> tiktoken-cl100k_base.tiktoken https://openaipublic.blob.core.windows.net/encodings/o200k_base.tiktoken -> tiktoken-o200k_base.tiktoken ) " S="${WORKDIR}/llama_index-5b7b6e323e1da3edd787a2104a89257c14f026d0/llama-index-integrations/llms/llama-index-llms-openai" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" RDEPEND=" >=dev-python/llama-index-core-0.14.5[${PYTHON_USEDEP}] =dev-python/openai-1.108.1[${PYTHON_USEDEP}]