catai

Run AI ✨ assistant locally! with simple API for Node.js 🚀

MIT License

Downloads
419
Stars
450
Committers
5

Bot releases are visible (Hide)

catai - v3.2.2 Latest Release

Published by github-actions[bot] 4 months ago

3.2.2 (2024-06-21)

Bug Fixes

  • bump: node-llama-cpp@beta version (64f7e68)
  • bump: node-llama-cpp@beta version (4a898e6)
catai - v3.2.1

Published by github-actions[bot] 5 months ago

3.2.1 (2024-05-10)

Bug Fixes

  • models: interactions (5bb7e24)
  • models: skip existing models (c96435c)
  • show only compatible models (933393e)
catai - v3.2.0

Published by github-actions[bot] 5 months ago

3.2.0 (2024-05-10)

Features

  • better api support for node-llama-cpp@beta (0ecce70)

Development API + Node-llama-cpp@beta integration

You can use the model with node-llama-cpp@beta

CatAI enables you to easily manage the models and chat with them.

import {downloadModel, getModelPath} from 'catai';

// download the model, skip if you already have the model
await downloadModel(
    "https://huggingface.co/QuantFactory/Meta-Llama-3-8B-Instruct-GGUF/resolve/main/Meta-Llama-3-8B-Instruct.Q2_K.gguf?download=true",
    "llama3"
);

// get the model path with catai
const modelPath = getModelPath("llama3");

const llama = await getLlama();
const model = await llama.loadModel({
    modelPath
});

const context = await model.createContext();
const session = new LlamaChatSession({
    contextSequence: context.getSequence()
});

const a1 = await session.prompt("Hi there, how are you?");
console.log("AI: " + a1);
catai - v3.1.1

Published by github-actions[bot] 9 months ago

3.1.1 (2024-01-26)

Bug Fixes

  • open ws on catai remote (cc54125)
catai - v3.1.0

Published by github-actions[bot] 9 months ago

3.1.0 (2024-01-18)

Features

catai - v3.1.0-beta.2

Published by github-actions[bot] 10 months ago

3.1.0-beta.2 (2023-12-14)

Bug Fixes

  • node-llama-cpp beta deps (c68dc2a)
catai - v3.1.0-beta.1

Published by github-actions[bot] 10 months ago

3.1.0-beta.1 (2023-12-14)

Features

catai - v3.0.2

Published by github-actions[bot] 12 months ago

3.0.2 (2023-10-26)

catai - v3.0.1

Published by github-actions[bot] 12 months ago

3.0.1 (2023-10-26)

catai - v3.0.0

Published by github-actions[bot] about 1 year ago

3.0.0 (2023-09-30)

  • BREAKING CHANGE: binding for node-llama-cpp (v1) dropped (#47) (4a44140), closes #47

BREAKING CHANGES

  • .ggml models are not supported anymore
catai - v2.0.15

Published by github-actions[bot] about 1 year ago

2.0.15 (2023-09-21)

Bug Fixes

catai - v2.0.14

Published by github-actions[bot] about 1 year ago

2.0.14 (2023-09-20)

Bug Fixes

  • create-chat: parallels initialization (#39) (b2ad987)
catai - v2.0.13

Published by github-actions[bot] about 1 year ago

2.0.13 (2023-09-10)

catai - v2.0.12

Published by github-actions[bot] about 1 year ago

2.0.12 (2023-09-06)

Bug Fixes

catai - v2.0.11

Published by github-actions[bot] about 1 year ago

2.0.11 (2023-09-02)

Bug Fixes

  • package: migrations scripts (b5da392)
catai - v2.0.10

Published by github-actions[bot] about 1 year ago

2.0.10 (2023-09-02)

Bug Fixes

catai - v2.0.9

Published by github-actions[bot] about 1 year ago

2.0.9 (2023-09-02)

Bug Fixes

catai - v2.0.8

Published by github-actions[bot] about 1 year ago

2.0.8 (2023-08-19)

Bug Fixes

catai - v2.0.7

Published by github-actions[bot] about 1 year ago

2.0.7 (2023-08-18)

Bug Fixes

  • check-update: versions are the same (93a50d6)
  • install: new line message (c0cee94)
catai - v2.0.6

Published by github-actions[bot] about 1 year ago

2.0.6 (2023-08-18)

Bug Fixes

Package Rankings
Top 21.12% on Npmjs.org
Top 6.75% on Proxy.golang.org
Badges
Extracted from project README
Build License License Version
Related Projects