An open API service indexing awesome lists of open source software.

https://github.com/khaouitiabdelhakim/llama-2-unofficial-api

This is a simple Node.js script that interacts with the Llama2 AI API to generate responses to prompts.
https://github.com/khaouitiabdelhakim/llama-2-unofficial-api

ai api chatbot llama llama2

Last synced: 4 months ago
JSON representation

This is a simple Node.js script that interacts with the Llama2 AI API to generate responses to prompts.

Awesome Lists containing this project

README

          

# Llama2 AI Chat Assistant

This is a simple Node.js script that interacts with the Llama2 AI API to generate responses to prompts.

## Usage

1. Clone the repository.
2. Install dependencies with `npm install`.
3. Set up your prompt in the `prompt` variable.
4. Run the script with `node api.js`.

## Configuration

- Modify the `prompt` variable to change the prompt text.
- Adjust other parameters in the `body` object as needed.

## Dependencies

- Axios: A promise-based HTTP client for Node.js. (Install with `npm install axios`)

## License

This code is provided for educational purposes under the MIT License.