2024-04-10 09:04:23 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
llama-index-core,
|
|
|
|
llama-index-llms-openai,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
2024-02-25 15:55:47 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "llama-index-multi-modal-llms-openai";
|
2025-03-05 09:15:46 +01:00
|
|
|
version = "0.5.0";
|
2024-02-25 15:55:47 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-03-26 09:50:57 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "llama_index_multi_modal_llms_openai";
|
|
|
|
inherit version;
|
2025-03-05 09:15:46 +01:00
|
|
|
hash = "sha256-tv0SaEKrjDQobWtkENK2lfuZbOa/htUA2SS12kTfC0E=";
|
2024-03-26 09:50:57 +01:00
|
|
|
};
|
2024-02-25 15:55:47 +01:00
|
|
|
|
2024-04-10 09:04:23 +02:00
|
|
|
build-system = [ poetry-core ];
|
2024-02-25 15:55:47 +01:00
|
|
|
|
2024-03-26 09:50:57 +01:00
|
|
|
dependencies = [
|
2024-02-25 15:55:47 +01:00
|
|
|
llama-index-core
|
|
|
|
llama-index-llms-openai
|
|
|
|
];
|
|
|
|
|
2024-03-26 09:50:57 +01:00
|
|
|
# Tests are only available in the mono repo
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-10 09:04:23 +02:00
|
|
|
pythonImportsCheck = [ "llama_index.multi_modal_llms.openai" ];
|
2024-03-26 09:50:57 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LlamaIndex Multi-Modal-Llms Integration for OpenAI";
|
|
|
|
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-openai";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
2024-02-25 15:55:47 +01:00
|
|
|
}
|