This repository contains a simplified connector that uses an echo function to simulate responses from a chat model. It's designed to mimic the behavior of more complex connectors (like those interfacing with models such as Ollama), but without the need for external API calls. This can be particularly useful for testing, development, or educational purposes.
- Echo function that simulates chat responses
- Mapping of chat completions to a standardized response format
- Simple integration into existing TypeScript projects
- Configurable to simulate different model types
Before installing this connector, ensure you have Node.js installed on your system.
- Clone the repository
git clone https://github.com/PromptMixerDev/prompt-mixer-sample-connector.git
cd prompt-mixer-sample-connector
- Install dependencies
npm install
This will install all necessary dependencies, including TypeScript and any types required for development.
The config
object can be adjusted to suit your needs. It's located in config.ts
. By default, it might include placeholders for various configurations. Ensure you review and update it as necessary for your project.
Contributions are welcome! If you have improvements or bug fixes, please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -am 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License
- This project is inspired by the need for simple, mock connectors in development environments.
- Thanks to all contributors and users for their interest and feedback.