2024-02-25 15:47:00 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-03-26 09:46:00 +01:00
|
|
|
fetchPypi,
|
2024-02-25 15:47:00 +01:00
|
|
|
llama-index-agent-openai,
|
|
|
|
llama-index-core,
|
|
|
|
llama-index-llms-openai,
|
|
|
|
poetry-core,
|
2024-03-26 09:46:00 +01:00
|
|
|
pythonOlder,
|
2024-02-25 15:47:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "llama-index-program-openai";
|
2024-12-01 01:31:20 +01:00
|
|
|
version = "0.3.1";
|
2024-02-25 15:47:00 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-03-26 09:46:00 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
2024-02-25 15:47:00 +01:00
|
|
|
|
2024-03-26 09:46:00 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "llama_index_program_openai";
|
|
|
|
inherit version;
|
2024-12-01 01:31:20 +01:00
|
|
|
hash = "sha256-YDmmzb/2LGOIwH6CoVf+Lt07vvDFrfKSrYVGv07HW4I=";
|
2024-03-26 09:46:00 +01:00
|
|
|
};
|
|
|
|
|
2024-03-27 09:38:46 +01:00
|
|
|
pythonRelaxDeps = [ "llama-index-agent-openai" ];
|
|
|
|
|
2024-03-26 09:46:00 +01:00
|
|
|
build-system = [ poetry-core ];
|
2024-04-24 08:20:19 +02:00
|
|
|
|
2024-03-26 09:46:00 +01:00
|
|
|
dependencies = [
|
2024-02-25 15:47:00 +01:00
|
|
|
llama-index-agent-openai
|
|
|
|
llama-index-core
|
|
|
|
llama-index-llms-openai
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "llama_index.program.openai" ];
|
2024-03-26 09:46:00 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LlamaIndex Program Integration for OpenAI";
|
|
|
|
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/program/llama-index-program-openai";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
2024-02-25 15:47:00 +01:00
|
|
|
}
|