0.0.4 • Published 5 months 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-key
Development
This project is using mise to manage runtime version. To install the correct version of bun install mise and run:
mise install
To install dependencies used in this project run:
bun install
Building
To build the library:
bun run build:lib
To build the binary:
bun run build:cli
Supported Models
- deepseek-chat
- deepseek-reasoner
- gemini-1.5-flash
- gemini-2.0-flash
- mistral