AI Model Conversation Interface using Ollama
The Chat Unix Tool is a powerful command-line application that facilitates conversations between two AI models using the ollama_gen library. It creates dynamic dialogues where models respond to each other, generating engaging conversations that can be saved as HTML files.
Real-time conversation between two AI models
Save conversations as styled HTML files
Control conversation direction with initial seeds
Watch conversations unfold in real-time
| Argument | Position | Required | Description | Example |
|---|---|---|---|---|
| <host> | 1 | â Yes | Ollama server host address | localhost:11434 |
| <model1> | 2 | â Yes | First AI model name | qwen3, llama3, mistral |
| <model2> | 3 | â Yes | Second AI model name | deepseek-r1, codegemma |
| <seed> | 4 | â Yes | Initial conversation prompt/topic | "Explain quantum computing" |
| <filename> | 5 | â Optional | Output HTML file path | chat.html, conversation.html |
This will start a conversation between qwen3 and deepseek-r1 about C++ programming, displaying output only in the console.
This saves the conversation to an HTML file with styled formatting for easy reading and sharing.
Models will collaborate on creative writing, with the full conversation saved as an HTML document.
# Clone the repository
git clone https://github.com/lostjared/ollama_gen.git
# Navigate to the ollama_gen directory
cd ollama_gen
# Ensure you have CMake installed
# Install dependencies (if needed)
sudo apt-get install cmake g++ libcurl4-openssl-dev
# Create a build directory
mkdir build && cd build
# Configure the project
cmake ..
# Build the project
cmake --build .
# install the library
sudo cmake --install .
# Navigate to the chat_unix directory
cd chat_unix
# Create build directory
mkdir build && cd build
# Configure and build
cmake ..
cmake --build .
# Run the application
./chat_unix <host> <model1> <model2> <seed> [filename]