Welcome to gpt4all-client 👋
GPT4All Typescript Client
Intro
This is a fork of gpt4all-ts repository, which is a TypeScript implementation of the GPT4all language model. This fork is intended to add additional features and improvements to the original codebase.
Install
yarn install
Usage
import { GPT4All } from "gpt4all-ts-client";
const gpt4all = new GPT4All("gpt4all-lora-unfiltered-quantized");
const forceDownload = false;
await gpt4all.init(forceDownload);
await gpt4all.open();
const prompt = "Tell me about how Open Access to AI is going to help humanity.";
const response = await gpt4all.prompt(prompt);
console.log(`Prompt: ${prompt}`);
console.log(`Response: ${response}`);
gpt4all.close();
Example usage
yarn build
yarn dev
Author
👤 Huynh Duc Dung @jellydn
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support

Give a ⭐️ if this project helped you!