summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-06-13 13:48:24 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-06-14 14:09:34 +0200
commit6b34433c9054da3686f10360992e0bf85236e048 (patch)
treea167550dff9161eba56256c19677f2e4293b4d88 /gnu/packages
parent9edf093e58a9ebbf5e4c6cdc874fcbcdbdca635d (diff)
gnu: Add r-openai.
* gnu/packages/cran.scm (r-openai): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/cran.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 53c49e3ac7..33cc882030 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -10960,6 +10960,33 @@ It is a replacement for the @code{zip} function, that does not require any
additional external tools on any platform.")
(license license:cc0)))
+(define-public r-openai
+ (package
+ (name "r-openai")
+ (version "0.4.1")
+ (source (origin
+ (method url-fetch)
+ (uri (cran-uri "openai" version))
+ (sha256
+ (base32
+ "1fi1nc9c7kfnig6b5ifpb1v9r3gxszk984rwyq7i1lb6s5jv0b9z"))))
+ (properties `((upstream-name . "openai")))
+ (build-system r-build-system)
+ (propagated-inputs (list r-assertthat
+ r-glue
+ r-httr
+ r-jsonlite
+ r-lifecycle
+ r-magrittr))
+ (home-page "https://github.com/irudnyts/openai")
+ (synopsis "R Wrapper for OpenAI API")
+ (description
+ "This package provides an R wrapper of OpenAI API endpoints (see
+@url{https://platform.openai.com/docs/introduction} for details). This
+package covers Models, Completions, Chat, Edits, Images, Embeddings, Audio,
+Files, Fine-tunes, Moderations, and legacy Engines endpoints.")
+ (license license:expat)))
+
(define-public r-openxlsx
(package
(name "r-openxlsx")