mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
misc/py-llm: new port - interact with remote and local models incl OpenAI, and Anthropic
This commit is contained in:
parent
18ac24ac0e
commit
01ceeb69a0
4 changed files with 46 additions and 0 deletions
|
@ -443,6 +443,7 @@
|
|||
SUBDIR += py-lightgbm
|
||||
SUBDIR += py-lightning-utilities
|
||||
SUBDIR += py-litellm
|
||||
SUBDIR += py-llm
|
||||
SUBDIR += py-log_symbols
|
||||
SUBDIR += py-mffpy
|
||||
SUBDIR += py-mmcv
|
||||
|
|
40
misc/py-llm/Makefile
Normal file
40
misc/py-llm/Makefile
Normal file
|
@ -0,0 +1,40 @@
|
|||
PORTNAME= llm
|
||||
DISTVERSION= 0.14
|
||||
CATEGORIES= misc python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= dch@FreeBSD.org
|
||||
COMMENT= Interact with Large Language Models by API, or locally
|
||||
WWW= https://llm.datasette.io/ \
|
||||
https://github.com/simonw/llm
|
||||
|
||||
LICENSE= APACHE20
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click-default-group>=1.2.3:devel/py-click-default-group@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}openai>=1.0.0:misc/py-openai@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pluggy>=1.0:devel/py-pluggy@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0:devel/py-pydantic2@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}python-ulid>=1<3:textproc/py-python-ulid@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}sqlite-migrate>0:databases/py-sqlite-migrate@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}types-PyYAML>=0:devel/py-types-PyYAML@${PY_FLAVOR}
|
||||
|
||||
USES= python shebangfix
|
||||
USE_PYTHON= autoplist concurrent pep517
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
PORTDOCS= README.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} \
|
||||
${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
misc/py-llm/distinfo
Normal file
3
misc/py-llm/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1715904497
|
||||
SHA256 (llm-0.14.tar.gz) = c4150eb47246342846cf57497304ed9afb918a94c5a39049e7422f1961371c09
|
||||
SIZE (llm-0.14.tar.gz) = 36664
|
2
misc/py-llm/pkg-descr
Normal file
2
misc/py-llm/pkg-descr
Normal file
|
@ -0,0 +1,2 @@
|
|||
A CLI utility and Python library for interacting with Large Language Models,
|
||||
including OpenAI, PaLM and local models installed on your own machine.
|
Loading…
Add table
Reference in a new issue