A collection of scripts for generating synthetic data using AI models.
- Support for OpenAI and compatible API endpoints
- Configurable model selection
- Retry logic for API resilience
- Concurrent processing capabilities
- Environment-based configuration
- Clone the repository:
git clone https://github.com/yourusername/model-context-protocol.git
cd model-context-protocol
- Install dependencies:
pip install -r requirements.txt
- Configure environment variables:
- Copy
.env.local
to.env
- Update the values in
.env
with your API credentials:
- Copy
OPENAI_API_KEY=your_api_key
OPENAI_ENDPOINT=your_endpoint
OPENAI_MODEL=your_model
The main script gen_artifacts.py
provides functionality for generating artifacts using AI models with specific context protocols.
python gen_artifacts.py
The following environment variables are supported:
OPENAI_API_KEY
: Your OpenAI API keyOPENAI_ENDPOINT
: The API endpoint URLOPENAI_MODEL
: The model identifier to use
[Add your chosen license]
Contributions are welcome! Please feel free to submit a Pull Request.