Socket
Book a DemoInstallSign in
Socket

@tecnocapital/celestial-codex

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tecnocapital/celestial-codex

Welcome, interstellar traveler, to a celestial codex that allows you to commune with the vast intelligence of the OpenAI Assistant API. This library is a cosmic conduit, providing a simple and intuitive interface to the stars of knowledge.

1.0.4
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Celestial Codex

Welcome, interstellar traveler, to a celestial codex that allows you to commune with the vast intelligence of the OpenAI Assistant API. This library is a cosmic conduit, providing a simple and intuitive interface to the stars of knowledge.

Installation

To install this celestial codex, use the following incantation in your terminal:

npm i @tecnocapital/celestial-codex

Usage

To commune with the cosmic intelligence, follow this basic example:

import AssistantLibrary from "@tecnocapital/celestial-codex";

const assistant = new AssistantLibrary("your-openai-key", "your-assistant-id");

try {
  const response: any = await assistant.getResponse("tell me about I/O redirectors");
  if (response && response.value) {
    console.log(response.value);
  } else {
    throw new Error('Response or response value is undefined');
  }
} catch (error) {
  console.error('Error occurred while getting response:', error);
}

Developing

To develop this celestial codex, you will need the following:

  • A devbox (optional)
  • The bun tool

Use the following incantations to start your journey:

devbox shell
bun install
bun run index.ts

To test your celestial codex:

bun test

This project was created using bun init in bun v1.0.10. Bun is a fast all-in-one JavaScript runtime.

This project was created using bun init in bun v1.0.10. Bun is a fast all-in-one JavaScript runtime, a cosmic tool for the modern developer.

FAQs

Package last updated on 20 Nov 2023

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.