Skip to content

llm-sdk 0.1.7

Install from the command line:
Learn more about npm packages
$ npm install @firefliesai/llm-sdk@0.1.7
Install via package.json:
"@firefliesai/llm-sdk": "0.1.7"

About this version

@hoangvvo/llm-sdk in JavaScript

A unified LLM API.

Installation

npm install @hoangvvo/llm-sdk

Usage

Create a model instance:

import { OpenAIModel } from "@hoangvvo/llm-sdk/openai";
// or
import { GoogleModel } from "@hoangvvo/llm-sdk/google";
// or
import { AnthropicModel } from "@hoangvvo/llm-sdk/anthropic";
// or
import { CohereModel } from "@hoangvvo/llm-sdk/cohere";
// or
import { MistralModel } from "@hoangvvo/llm-sdk/mistral";

const model = new OpenAIModel({
  apiKey: "openai-api-key",
  modelId: "gpt-3.5-turbo",
});

See examples or test cases for more details.

License

MIT

Details


Assets

  • llm-sdk-0.1.7.tgz

Download activity

  • Total downloads 414
  • Last 30 days 252
  • Last week 77
  • Today 0

Recent versions

View all