Socket
Socket
Sign inDemoInstall

@replit/ai

Package Overview
Dependencies
0
Maintainers
29
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @replit/ai

A library for building AI applications in JavaScript and TypeScript.


Version published
Weekly downloads
13
increased by1200%
Maintainers
29
Install size
168 kB
Created
Weekly downloads
 

Readme

Source

@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

Keywords

FAQs

Last updated on 12 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc