0.0.4 • Published 1 year ago
nexus-ai v0.0.4
nexus
A tool to interact with different AI models. It can be used either as a library or as a standalone CLI tool.
How to use
As a library
import callLLM from "nexus-ai"
const response = await callLLM({
prompt: "What is the capital of Switzerland?",
model: "deepseek-chat",
apiKey: "your-api-key",
})As a CLI tool
nexus -p "What is the capital of Switzerland?" -m deepseek-chat -k your-api-keyDevelopment
This project is using mise to manage runtime version. To install the correct version of bun install mise and run:
mise installTo install dependencies used in this project run:
bun installBuilding
To build the library:
bun run build:libTo build the binary:
bun run build:cliSupported Models
- deepseek-chat
- deepseek-reasoner
- gemini-1.5-flash
- gemini-2.0-flash
- mistral