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
A unified LLM API.
npm install @hoangvvo/llm-sdk
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.
MIT