A Python script that automatically generates random questions and sends them to the Nous and Hyperbolic API to get responses from the model
- Generates random questions across various topics
- Sends requests to the Hyperbolic API
- Configurable response parameters
- Random timing between requests (60-120 seconds)
- Graceful shutdown with CTRL+C
- Python 3.x
requestsandpython-dotenvlibrary- Hyperbolic API key with sufficient balance
- Clone this repository or download the script
- Install the required package:
pip install requests python-dotenv
- Add your API key to the script by copy
.env.exampleto.envand fill it with API key from hyperbolic and nous research.
- Visit Hyperbolic Settings Page and Nous Research Settings Page to obtain your API key
- Ensure you have sufficient balance in your account to make API requests
- Copy your API key and paste it in the script
Simply run the script:
python hyperbolic.py
python nous.pyThe script will:
- Generate a random question
- Send it to the Hyperbolic and nous API
- Display the model's response
- Wait for a random period (60-120 seconds)
- Repeat the process
To stop the script, press CTRL+C.
You can modify the following parts of the script:
topics: Add or remove topics for question generationactions: Customize the question formatsspecifics: Add context variations to questions- API parameters: Adjust temperature, tokens, and other model settings