oaii

OpenAI R interface package

https://github.com/cezarykuran/oaii

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

OpenAI R interface package

Basic Info
  • Host: GitHub
  • Owner: cezarykuran
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 339 KB
Statistics
  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created about 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme

README.md

R-CMD-check CodeFactor CRAN CRAN <!-- badges: end -->

OpenAI API R implementation

The "oaii" package is a well-designed R library, crafted specifically to interface seamlessly with the OpenAI API. This package unlocks a broad spectrum of capabilities for R users, including text generation, language translation, and question-answering functionalities. By leveraging the robust capabilities of the API, the "oaii" package offers a comprehensive toolkit for users, enabling them to harness the full power of state-of-the-art AI models in their R-based applications.

Implemented endpoint helpers:

  • stable: audio, chat, completions, embeddings, files, fine tunes, images, models, moderations
  • beta: assistants, threads, messages, runs

Package instalation

stable
install.packages('oaii')
or
remotes::install_github("https://github.com/cezarykuran/oaii.git", subdir = "package", ref = "master")
devtools::install_github("https://github.com/cezarykuran/oaii.git", subdir = "package", ref = "master")

develop
remotes::install_github("https://github.com/cezarykuran/oaii.git", subdir = "package", ref = "develop")
devtools::install_github("https://github.com/cezarykuran/oaii.git", subdir = "package", ref = "develop")

You will need to provide your OpenAI API key to interact with the API.

Demo applications

There exists a sister package named oaiiDemoApps containing applications that demonstrate the practical use of the oaii package. The oaiiDemoApps package contains:

  • An interactive Shiny demo application, which can be accessed at https://r.cezarykuran.it/shiny/oaii/ (feel free to explore its functionality!).
  • Several demonstration terminal applications written as R scripts. These applications serve as practical examples, demonstrating how to effectively leverage the package's functions for API communication.

Contributions

Contributions to the package are welcome. If you encounter any issues or have suggestions for improving the package, feel free to open an issue or submit a pull request.

Other

OpenAI useful links:

Owner

  • Login: cezarykuran
  • Kind: user

GitHub Events

Total
  • Watch event: 2
Last Year
  • Watch event: 2

Packages

  • Total packages: 1
  • Total downloads:
    • cran 236 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: oaii

'OpenAI' API R Interface

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 236 Last month
Rankings
Forks count: 21.0%
Stargazers count: 22.0%
Downloads: 23.2%
Average: 26.1%
Dependent packages count: 28.1%
Dependent repos count: 36.0%
Maintainers (1)
Last synced: 10 months ago

Dependencies

package/DESCRIPTION cran
  • checkmate * imports
  • httr * imports
  • magrittr * imports
  • utils * imports
  • base64enc * suggests
  • cli * suggests
  • colourpicker * suggests
  • fontawesome * suggests
  • htmltools * suggests
  • jsonlite * suggests
  • log4r * suggests
  • markdown * suggests
  • shiny * suggests
  • shinyjs * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite