Additional Model Provider Adapters for the 'aisdk' Toolkit

Additional AI model provider adapters for the 'aisdk' toolkit, covering OpenAI-compatible and Anthropic-compatible services such as 'DeepSeek', 'Moonshot'/'Kimi', 'Stepfun', 'Volcengine', 'AiHubMix', 'xAI', 'OpenRouter', 'Bailian', and 'NVIDIA'. Providers register themselves with the core 'aisdk' provider registry on load.


aisdk.providers

Additional AI model provider adapters for the aisdk toolkit.

Covers OpenAI-compatible and Anthropic-compatible services: DeepSeek, Moonshot/Kimi, Stepfun, Volcengine, AiHubMix, xAI, OpenRouter, Bailian, and NVIDIA.

Providers register themselves with the core aisdk provider registry on load, so they are resolvable through the provider:model syntax (e.g. get_default_registry()$language_model("deepseek:deepseek-chat")).

Installation

install.packages("aisdk.providers")

You can install the development version from GitHub with:

# install.packages("pak")
pak::pak("YuLab-SMU/aisdk.providers")

Usage

library(aisdk)
library(aisdk.providers)

model <- create_deepseek()
generate_text(model, "Hello")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("aisdk.providers")

0.1.0 by Yonghe Xia, 4 months ago


https://github.com/YuLab-SMU/aisdk.providers


Report a bug at https://github.com/YuLab-SMU/aisdk.providers/issues


Browse source code at https://github.com/cran/aisdk.providers


Authors: Yonghe Xia [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports aisdk, R6, rlang, base64enc, jsonlite, curl, utils

Suggests withr, testthat


See at CRAN