This is a simple Node.js script that interacts with the Llama2 AI API to generate responses to prompts.
- Clone the repository.
- Install dependencies with
npm install
. - Set up your prompt in the
prompt
variable. - Run the script with
node api.js
.
- Modify the
prompt
variable to change the prompt text. - Adjust other parameters in the
body
object as needed.
- Axios: A promise-based HTTP client for Node.js. (Install with
npm install axios
)
This code is provided for educational purposes under the MIT License.