Socket
Book a DemoInstallSign in
Socket

@osaas/client-ai

Package Overview
Dependencies
Maintainers
11
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osaas/client-ai

Open Source Cloud Client SDK ai library

0.4.8
latest
Source
npmnpm
Version published
Maintainers
11
Created
Source

@osaas/client-ai

SDK for interacting with ai services

Usage

Prerequisites

  • An account on Open Source Cloud
npm install --save @osaas/client-ai

Example code

import { Context, Log } from '@osaas/client-core';
import { ChatClient } from '@osaas/client-ai';

async function main(question: string) {
  const ctx = new Context();

  try {
    const chat = new ChatClient({
      context: ctx
    });
    await chat.init();

    const response = await chat.sendChat(question);
    console.log(response.message);
  } catch (err) {
    console.log((err as Error).message);
  }
}

main("How can I create a FASY channel?");

About Open Source Cloud

Open Source Cloud reduces the barrier to get started with open source without having to host it on your own infrastructure.

Start building software solutions based on open and detachable ready-to-run cloud components with Open Source Cloud. Full code transparency, never locked in and a business model that contributes back to the open source community. Offering a wide range of components from media and more to help you build the best solution for you and your users.

www.osaas.io

FAQs

Package last updated on 23 Jun 2025

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.