8000 GitHub - jbeoris/janus-ai
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jbeoris/janus-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

janus-ai

A TypeScript / JavaScript library for tracking AI rate limits across multiple services.

Usage

import JanusAI from 'janus-ai';

export const janus = new JanusAI();

janus.connect();

const registerInput = async () => {
  const janusDataObject = await janus.registerChatInput({
    model: 'gpt-4', 
    data: { 
      messages: [
        {
          role: "user",
          content: "Hello, Janus!"
        }
      ] 
    }
  });

  console.log(janusDataObject.system.load);
};

const janusDataObject = await janus.registerChatInput({
  model: data.model, 
  data: { messages: data.messages, functions: data.functions }
})

Development and testing

Built in TypeScript, tested with Jest.

$ yarn install
$ yarn test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0