Skip to main content
Home

Built and signed on GitHub Actions

A simple way to send a plain text message to an existing OpenAI Assistant and get a response.

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
a year ago (0.3.0)

@nilsd/openai-assistant-lite

A simple way to send a plain text message to an existing OpenAI Assistant and get a response.

Example

import { Assistant } from '@nilsd/openai-assistant-lite';

const assistant = new Assistant({
    apiKey: 'your_openai_api_key',
    assistantId: 'your_assistant_id' // Ex. 'asst_abc123abc123',
});

await assistant.initialize();

const response = await assistant.requestReply('How are you doing?');

console.log(response.reply);
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@nilsd/openai-assistant-lite

Import symbol

import * as openai_assistant_lite from "@nilsd/openai-assistant-lite";
or

Import directly with a jsr specifier

import * as openai_assistant_lite from "jsr:@nilsd/openai-assistant-lite";

Add Package

pnpm i jsr:@nilsd/openai-assistant-lite
or (using pnpm 10.8 or older)
pnpm dlx jsr add @nilsd/openai-assistant-lite

Import symbol

import * as openai_assistant_lite from "@nilsd/openai-assistant-lite";

Add Package

yarn add jsr:@nilsd/openai-assistant-lite
or (using Yarn 4.8 or older)
yarn dlx jsr add @nilsd/openai-assistant-lite

Import symbol

import * as openai_assistant_lite from "@nilsd/openai-assistant-lite";

Add Package

vlt install jsr:@nilsd/openai-assistant-lite

Import symbol

import * as openai_assistant_lite from "@nilsd/openai-assistant-lite";

Add Package

npx jsr add @nilsd/openai-assistant-lite

Import symbol

import * as openai_assistant_lite from "@nilsd/openai-assistant-lite";

Add Package

bunx jsr add @nilsd/openai-assistant-lite

Import symbol

import * as openai_assistant_lite from "@nilsd/openai-assistant-lite";