Skip to content

Commit

Permalink
misc/py-llm-claude-3: new port - anthropic claude3 lib for py-llm
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.freebsd.org/D45269
  • Loading branch information
dch committed May 22, 2024
1 parent 01ceeb6 commit 969cda5
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@
SUBDIR += py-lightning-utilities
SUBDIR += py-litellm
SUBDIR += py-llm
SUBDIR += py-llm-claude-3
SUBDIR += py-log_symbols
SUBDIR += py-mffpy
SUBDIR += py-mmcv
Expand Down
32 changes: 32 additions & 0 deletions misc/py-llm-claude-3/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PORTNAME= llm-claude-3
DISTVERSION= 0.3
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://github.com/simonw/llm-claude-3

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=41:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anthropic>=0.26.0:misc/py-anthropic@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}llm>=0.3:misc/py-llm@${PY_FLAVOR}

USES= python
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 changes: 3 additions & 0 deletions misc/py-llm-claude-3/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1716202989
SHA256 (llm-claude-3-0.3.tar.gz) = 82cdbb74cf0992403aacf8dc68c0c1289c5cd667b752138de9bf059753bc5ac6
SIZE (llm-claude-3-0.3.tar.gz) = 7922
1 change: 1 addition & 0 deletions misc/py-llm-claude-3/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Plugin for Anthropic Claude 3, a machine learning large language model.

0 comments on commit 969cda5

Please sign in to comment.