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.
- Host: GitHub
- URL: https://github.com/khaouitiabdelhakim/llama-2-unofficial-api
- Owner: khaouitiabdelhakim
- Created: 2024-04-19T03:44:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-19T03:44:20.000Z (over 1 year ago)
- Last Synced: 2025-06-02T08:18:52.091Z (4 months ago)
- Topics: ai, api, chatbot, llama, llama2
- Language: JavaScript
- Homepage: https://khaouitiapps.vercel.app
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.