This package has been deprecated

Author message:

This packaged moved to @replit/ai-modelfarm

@replit/ai
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@replit/ai

A library for building AI applications in JavaScript and TypeScript.

Requirements

  1. Running On Replit: it is required to be running on Replit (either in development or in a deployment) to be able to use this package. You must also subscribe to one of our paid plans. This requirement will loosen up in the future.
  2. Supported backends: Node 18+, Deno, and Bun. In essence the backend needs to have support for the fetch API. You may be able to use older version of Node as long as you polyfill your runtime with fetch prior to calling into the API.

Usage

The library implements an API for text completion, chat completion, and generating embeddings. It supports streaming so that you can provide your users with the best user experience.

The library is available on NPM as @replit/ai.

You can check out the API reference

Here is a simple command line chat demo using this library

Readme

Keywords

Package Sidebar

Install

npm i @replit/ai

Weekly Downloads

10

Version

0.0.6

License

Apache-2.0

Unpacked Size

172 kB

Total Files

9

Last publish

Collaborators

  • sareini
  • krishatreplit
  • mikewesthad
  • motzyball
  • juan.replit
  • ahulbert-replit
  • james-addison-replit
  • replitdstewart
  • ryanweingast
  • harryatreplit
  • theflowingsky
  • jonesit-replit
  • szymon_k
  • cdmistman
  • jackyzha0
  • jamesaustinreplit
  • lopezhoracio
  • bradymaddenreplit
  • ryantm
  • alexisreplit
  • ink404
  • brianpool
  • tobyho
  • brenoafb
  • masad-frost
  • lincolnreplit
  • stkenned
  • replitmatt
  • cbrewster
  • ltazmin_replit
  • moudy
  • schestakov
  • lhchavez
  • slmjkdbtl
  • lunaroyster